How to call Oracle Reports via Java Web Application ?

Dear All,
I have developed a web reports using Oracle Reports 11g and would like to display these reports via Java Web App that will call them.
Kindly help me in this matter.
Regards,
Irfan

i will go as John suggested.........Construct a URL with required parameters and call it using goLink component
make a configuration in Report server and
http://myServer:myport/reports/rwservlet?config=myconfig&destype=cache&desformat=PDF&report=myreport.jsp&myparameter=myvalue

Similar Messages

  • How to call a report from a web application

    Hi,
    I have a web server in wich is installed Reports 6i. My question is how can I call reports 6i to generate a pdf using a .rep file from my web application (built with java)?

    Hi,
    The below link will be very useful for one who need idea on calling Oracle Report from Java Application,
    http://www.oracle.com/technology/products/reports/htdocs/getstart/examples/reportswebservice/index.html
    Thanks & Rgds,
    M T

  • How to call Jakarta Ant via JAVA?

    Hi.
    My application has a new menu. This menu creates a build.xml Ant file.
    Now, when this menu is invoked , its action should call
    Jakarta Ant, after creating the xml file, so that the build.xml will
    do what is necessary.
    How can I do it? That is, how to call the Ant via java?
    Is there any way to use an Ant object?
    Thanks?
    Rodrigo Pimenta Carvalho.

    There is a slight problem in that
    PorjectHelper.configureProject is deprecated, but
    that is what Main calls...maybe someone else will
    complete this thread with an alternative call.The javadoc recommends using the non static method parse() instead. This is available by implementing class ProjectHelperImpl. An alternative to the code above might look like this:
            Project ant = new Project();
            ProjectHelper helper = new ProjectHelperImpl();
            ant.init();
            helper.parse(ant, new File("build.xml"));
            ant.executeTarget("clean");you might also want to add a logger so you can see the output of events generated by ant. The DefaultLogger class would be used like this. Simply add the code before you call the ant.init().
            DefaultLogger log = new DefaultLogger();
            log.setErrorPrintStream(System.err);
            log.setOutputPrintStream(System.out);
            log.setMessageOutputLevel(Project.MSG_INFO);
            ant.addBuildListener(log);

  • How to call oracle reports from ADF application.

    Hi
    I am migrating oracle 11g application to ADF. I would like to call oracle reports from ADF application.

    There is nothing similar to forms-reports integration, but you can invoke rwservlet url.
    Here is sample and utility class: Sameh Nassar: Call Oracle Reports From Your ADF Application
    Dario

  • How to avoid directory listing in java web applications.

    how to avoid directory listing in java web applications.
    That is on typing the url of the application it should not the directory listing. Welcome tag in web.xml doesnot fully solve the problem, since still the images folder etc is still accessible

    I know of two ways.
    If you're using tomcat and have access to the conf directory.
    Edit your $TOMCAT/conf/web.xml. Find your default servlet properties and change
      <servlet>
        <servlet-name>default</servlet-name>
        <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
        <init-param>
          <param-name>debug</param-name>
          <param-value>0</param-value>
        </init-param>
        <init-param>
          <param-name>listings</param-name>
          <param-value>true</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>to  <servlet>
        <servlet-name>default</servlet-name>
        <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
        <init-param>
          <param-name>debug</param-name>
          <param-value>0</param-value>
        </init-param>
        <init-param>
          <param-name>listings</param-name>
          <param-value>false</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>And restart your server. This will affect every directory on the server, and return a 405 directory browsing forbidden error.
    Another way, is to place an index.jsp inside each directory with a simple one line redirect to your applications CONTEXT_PATH.response.sendRedirect("http://yourserver/yourapp/");This will only affect specific directories which contain these index.jsp files.
    Hope this helps

  • How to call Oracle Report 6i from a java swing/ejb codes (client server)

    Hi to all.
    We now have to do reports using Oracle Reports that have to call from Java Swing (interface) / EJB (Backend).
    How can we call the Oracle Reports 6i from Java Swing?
    Do anybody done that?...Any ideas? Where should we find the resourse, if any?
    Thanks in advance and best wishes to all,
    Rushdan.

    Hi,
    6i
    1) One way
    Runtime.getRuntime().exec("rwcli60 report=test.rdf .... server=server_name ...<cmd line params>...");
    2) From swing, open a browser and submit request programmatically
    Re: Calling reports6i reports from java swing client serve application
    Thanks
    Ratheesh

  • How to Run Oracle Reports from the web.

    How can we run Oracle Reports from the web - for example from a portal such as "Gateway"
    This is a univeristy that implements Banner - so can we run them from within Banner?

    Yes, of course. And for running the reports-server you need an OAS. Maybe here is a good starting point http://www.oracle.com/technology/documentation/reports.html

  • Regarding tutorial of how to call Oracle Reports from APEX

    Hi,
    I'm trying to call Oracle Reports from APEX using this tutorial.
    http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    But in the step of 'Create the Oracle HTML DB Application', 'OE' doesn't appear in the LOV of Existing Schema, even though the sample schema exists in the schema and they are unlocked. And when I type 'OE' directly without using LOV, and press Next, the message 'Schema is reserved or restricted' appears.
    How can I create the workspace based on OE schema?

    Hello Shohei,
    I know your following the tutorial, but if you want to call oracle reports from apex it is quite easy though if your working with oracle reports 9i or higher. Just create an html region and put in the source the html code for referencing an url like to_report
    Or reference the same url from a button placed on the HTML region
    (you can create a package that would create the whole URL and returns it as a string, easier for scalability)
    Hope this can help you to (tutorial is good but try and learn from scratch is also good ;-) )
    Erwin

  • How to call Oracle Reports from APEX

    Dear All,
    I am new to APEX. My first job assignment is "calling oracle reports from apex".
    Can any one help me on this? Is there any online examples / tutorials from OTN site?
    TIA.

    Hi Joe,
    the how-to is still valid for APEX 3.0. Calling an Oracle Report from APEX is still the same, it's basically the URL you build for the report call and Oracle Reports hasn't changed that format.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Showing Oracle reports in current web application with JBOSS as AS

    hi:
    I have installed the Oracle AS(10g 10.1.2.0.2) and the reports services... I have also installed the Stand Alone J2EE Thin Client (http://www.oracle.com/technology/products/reports/htdocs/getstart/examples/Tools/index.html)
    My current web project uses JBoss and I have to show oracle reports keeping the current environment.
    I have followed the steps provided on the doc mentioned in the above link.
    first i did the following steps ( please refer to the text of that readme doc below)
    (//text of readme doc, I have done these steps
    1. Deploy THINCLIENT_HOME/reports/j2ee/reports.ear on the J2EE application server.
    2. Add the following JAR files to the classpath of the J2EE application server:
    * THINCLIENT_HOME/reports/jlib/rwrun.jar
    * THINCLIENT_HOME/jlib/zrclient.jar
    3. Use THINCLIENT_HOME/vbroker4/lib/vbjboot.jar while starting the application server.
    but i cannot understand what is written just next to the above llines in that doc I am pasting those points from that doc
    (text of readme doc:
    The following section provides detailed instructions on carrying out the above 3 configuration steps with OC4J Standalone Distribution 10g (9.0.4). You need to consult your J2EE application server's documentation to carry out the same steps for your application server.
    1. Add the following to OC4J_HOME/j2ee/home/config/server.xml
    <application name="reports" path="<THINCLIENT_HOME>/reports/j2ee/reports.ear" auto-start="true" />
    2. Add the following to OC4J_HOME/j2ee/home/config/http-web-site.xml
    <web-app application="reports" name="web" root="/reports"/>
    3. Add the following to OC4J_HOME/j2ee/home/config/application.xml
    <library path="<THINCLIENT_HOME>/reports/jlib/rwrun.jar"/>
    <library path="<THINCLIENT_HOME>/jlib/zrclient.jar"/>
    according to what i understood i went to OC4J which is under my Oracle_Infra directory and then completed the above steps
    after that I ran the command (according to this doc):
    java -Xbootclasspath/p:<THINCLIENT_HOME>/vbroker4/lib/vbjboot.jar -jar oc4j.jar
    the result of this command is following
    06/02/09 14:57:37 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
    and then it never comes back to command prompt
    Now after all these steps...i don't understand what to do next and my problem is still there which is How to deploy reports made by oracle reports from my web project links
    please help
    Waqas

    If the links in your example report1 and report2
    follow my format stated earlier
    http://machine:port/reports/rwservlet/report=reportnam
    e.rdf&destype=cache& paramform=htmlcss&server=<YourReportSe
    rverName>&userid=scott/tiger@hrdb&desformat=pdf
    This is what I believe
    >
    so http://machine:port/ is the port where
    JBoss is running and
    This should be the port that the report server is listening on
    >
    server=<YourReportServerName> is the name of
    my oracle report server
    so I call the above link in my current application
    and the report would show up
    Yes
    >
    that means (correct me if I am wrong) that my reports
    would have to be deployed in OracleAS
    Yes
    >
    I have to try all this yet as till this point I was
    trying to run Oracle reports deployed in JBoss...
    This may be possible, I am not sure.
    >
    Oracle J2EE Thin Client?
    I am not sure what this is used for in your setup.

  • How to call a servlet  by  java standalone application

    //program related to calling a servlet by java standalone application and printing the response on console
    import java.io.*;
    import java.util.*;
    import java.lang.Object;
    import java.net.*;
    public class Program
         public static void main(String s[])
         System.out.println("Hello this programm defines about how to call a servlet with a java application ");
         try{
              URL servlet = new URL("http://localhost:8080/anchor/studentform.html");
              URLConnection conn=servlet.openConnection();
              conn.setDoOutput(true);
              InputStreamReader isr=new InputStreamReader(conn.getInputStream());
              BufferedReader br = new BufferedReader(isr);
              String str =br.readLine();
              System.out.println("Source code is" +str);          
         catch(IOException e)
         System.out.println("exception is" +e);
    i am able to read only one line of the form, please help me out to read the whole form (file)

    You are only reading one line? Why aren't you reading the data in a loop? E.g. a while loop. (Keep reading till readLine returns null)
    Kaj

  • Calling oracle reports from java applications

    Hi:
    I was wondering if anyone can tell me how to invoke an oracle report from a java application.

    yes it is possible. There is a cgi script called viewreport.cgi. Have the jsp page call it (GET or POST method) and place the user parameters inside the form.

  • How to call BPEL process from Java Web Service?

    Any example/sample/tutorial on this?
    TIA.

    I've done something similar a few times, specifically using a standalone Java application to invoke a BPEL process (so that it can be called from a cron job, for instance).
    The thing to remember is that a BPEL process presents itself to the outside world as a Web service. If your Java Web service can communicate with other Web services (by sending a message of the appropriate format to the URL of the other Web service), then exactly the same technique can be used to call the BPEL process. You know what the input message has to look like, and you know where the process is located on your network, so set up the Java Web service to send the message to that address.

  • How to call a report via a URL, showing a parameter prompt, but no controls

    Hi,
    I want to be able to call a report online by passing in the URL to Portal. Want to show a prompt for a parameter value and nothing else, until the parameter is entered. I can get the report to display the parameter and the controls, and I can get it to display without the parameter and without controls. However, I can't seem to find a combination that enables me to prompt the user with a parameter, without showing any controls.
    Currently, I am showing the parameter and controls with this URL:
    http://{CURRENT_SERVER_URL}/Sector/Comments/Orders/Orders.xdo?_xpf=&_xpt=0&_xdo=%2FSector%2FComments%2FOrders%2FOrders.xdo&Order_No=&_xt=Orders%20and%20Shipments&_xf=html&_xmode=2
    Thanks
    Phil

    Hi Phil,
    http://{CURRENT_SERVER_URL}/Sector/Comments/Orders/Orders.xdo?PARAMETER1=jjj&PARAMETER2=&_xmode=6
    You have to pass the parameters in the url inorder to display them in page.
    Note : PARAMETER1, PARAMETER2.
    jjj was the values passed to first parameter1 as default.
    null was passed to parameter2 as default
    use xmode=2 or xmode=6 , first one, gives extra report link , second one doesn't.

  • How to call Oracle sqlldr in Java

    Hi All:
    I am using windows 2000 server with Eclipse.
    In the dost prompt, I ran the file run_sqlldrTest2.cmd and it loaded record into the Oracle database.
    I tried to do the same thing in java calling the run_sqlldrTest2.cmd. In java it states the "The command line job - -executed successfully."
    However, I donot see the record being loaded into the database.
    What am I doing wrong?
    If I comment out the "cmd[2]=set PATH=C:\\OraHome_1\\bin;" line and ran RunCmd.java, on the line for P.waitFor() it would freeze there forever:
    Any help for suggestions would be greatly appreciated!!
    Yours,
    Frustrated.
    RunCmd.java:
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    public class RunCmd
         public static void main(String[] args)
              Process P;
              Runtime r;
    r = Runtime.getRuntime();
    try {
    String[] cmd = new String[4];
    cmd[0] = "cmd.exe";
    cmd[1] = "/C";
    cmd[2]="set PATH=C:\\OraHome_1\\bin;";
    cmd[3]="C:\\test2009\\scripts\\run_sqlldrTest2.cmd";
    try {
         P = r.exec(cmd);
    int Exitcode = P.waitFor();
    if (Exitcode != 0)
    System.out.println("The command line job did not execute successfully");
    else
    System.out.println("The command line job - " +
    " - executed successfully."); //break
    catch (Exception e)
         System.out.println(" 1 e.getMessage():"+e.getMessage());
    } catch (Exception e)
         System.out.println("2 e.getMessage():"+e.getMessage());
    run_sqlldrTest2.cmd:
    set PATH=C:\\OraHome_1\\bin;
    C:\test2009\scripts\run_sqlldr.cmd test2009/test2009@orcl control=C:\test\scripts\ctl\amcare.ctl log=C:\test\scripts\log\NAC20090150005112.txt.log data=C:\test\scripts\data\NAC20090150005112.txt bad=C:\test\scripts\bad_files\NAC20090150005112.txt.bad discard=C:\test\scripts\dis_files\NAC20090150005112.txt.dis;
    run_sqlldr.cmd:
    echo %* > C:\test2009\scripts\log\sqlldr.log
    sqlldr %* >> C:\test2009\scripts\log\sqlldr.log

    cmd does not support multiple commands on the same line. Your program is trying to set the path as in cmd[2] and ignoring the rest of the line. Try commenting/removing this line.

Maybe you are looking for