How to create Reports and Forms using JSP

Hi,
How to create reports using JSP. And how many types of reports can be created using JSP.Can anyone explain with example please.
Thanks,
Vijayalakshmi.M

Here is some code that creates xml for any SQL that returns a ResultSet. Note this uses my default out-of-the-box XML template, but you can quickly create and use your own templates to generate xml to look anyway you desire.
FormattedDataSet fds=FormattedDataSet.createInstance();
Map miscData=new HashMap();
map.put("rootElement", "musicgroups");
String xml=fds.getFormattedDataSet("select * from groups", miscData, "xml1");
String xml has the value:
<musicgroups>
<row rowID='1'>
  <group_id>1</group_id>
  <group_name>Rolling Stones</group_name>
  <type>Rock</type>
</row>
<row rowID='2'>
  <group_id>2</group_id>
  <group_name>Beatles</group_name>
  <type>Rock</type>
</row>
<row rowID='3'>
  <group_id>3</group_id>
  <group_name>Led Zepplin</group_name>
  <type>Rock</type>
</row>
</musicgroups>steve -
http://www.fdsapi.com - The easiest way to generate dynamic HTML and XML
http://www.jamonapi.com - A performance tuning and scalability measuring API

Similar Messages

  • How to create users and groups using WLST Offline with Weblogic 8.1.4

    How to create users and groups using WLST Offline with Weblogic 8.1.4?
    Any ideas?

    Hi this is how i created a user using WLST Offline?
    cd('/Security/' + domainName)
    # Delete the default user name weblogic
    # incase you want to remove the defualt user weblogic
    delete('weblogic','User')
    # Creating a new user defined
    create(userName, 'User')
    # Setting the password of the user you created.
    cd ('/Security/' + domainName + '/User/' + userName)
    cmo.setPassword(password)
    Regards
    Makenzo

  • How to create a MD form using dynamic page ?

    Rahul and Sharmila,
    You have answered several of my queries earlier and I am thankful for them.
    I have been trying to creating a MD form using dynamic page and I haven't fiqured it out. I need help. You both advised me on creating a simple form using dynamic page. The complexity changes drastically when I have to create a MD form. Has no body ever tried to create a MD form with dynamic page?
    I haven't heard from you anything either. I am stuck with this and I need help urgently. Would you kindly tell me if this is possible and how ? Otherwise, I will stop crying for help on this.
    Thanks for your kind attention.
    Mainak

    Hi,
    I have replied to this in the morning.
    Re: Oracle portal and JSR 168 compliance
    Hope it helps.
    Thanks,
    Sharmila

  • How to run report from form using run_object_report

    I AM USNING FORMS9I/REPORTS 9I , HOW TO RUN REPORT FROM FROM USING RUN_REPORT_OBJECT AND HOW
    TO PASS PARAMETER AS WE DID IN RUN_REPORTS PLEASE HELP ME

    here an example !
    I hope this example you can use it
    PROCEDURE pr_reporte IS
    BEGIN
    DECLARE
         repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status Varchar2(20);
    d1 DATE;
    d2 DATE;
    BEGIN
         d1 := :GLOBAL.DIA_INI;
         d2 := :GLOBAL.DIA_FIN;
         repid := find_report_object('rep_lab02');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'p_fec_uno='||to_char((add_months(last_day(d1),-1) +1),'DD/MM/YYYY')||' '||
         'p_fec_dos='||to_char(d2,'DD/MM/YYYY'));
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := report_object_status(v_rep);
         WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
              rep_status := report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' then
              WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
         ELSE
              ventana('E','error reporte no encontrado','S');
         END IF;
    END;
    END;
    The 'rep_lab02' is the name of the report that you give in the node reports
    p_fec_uno and p_fec_dos they are the parameters in the report
    repserver is the name of server created with rwserver
    Greetings

  • How to Create an Input Form using a Transient View Object?

    I would like to use a Transient View Object to store data from input forms across a multiple-page enrollment process.
    My question is how to I create the input form using the Transient View Object on the .jspx page? Do I drag/drop an ADF creation form onto the page? Or, use a regular ADF form? Do I need to create the initial row progammatically?
    Just looking for some general directions or set of instructions? I've looked at the SRDemo example (Globals Transient View Object), but I'm not sure how they created the page at design time?
    thanks

    Well following the SRDemo example, this seems to work:
    1. Create Transient View Object
    2. Add to Application Module as a Data control
    3. Add to .jspx page as an ADF Form (not as an ADF Create Form)
    4. Add following code to Application Module containting Transient VO instance:
    protected void prepareSession(Session session) {
    super.prepareSession(session);
    insertTransientViewObjRows();
    private void insertTransientViewObjRows() {
    ViewObject transientvo = getViewObj1();
    transientvo.clearCache();
    transientvo.insertRow(transientvo.createRow());
    }

  • How to create Report Writer Form with page longer than 255

    As i need to create report writer form with many columns which exceed than 1 acceptable page, how can I create since in writer there is no Horizontal Page as in report painter.
    Thank you very much.
    Sirirak

    check it out.
    pretty simple example
    http://www.baigzeeshan.com/2010/04/creating-simple-search-form-in-oracle.html
    here is the example what you 're looking instead of af:table have your form.

  • How to create reports and infosets in E recruiting

    Hi we are planning to create reports and infosets in E recruiting module Though I am not a developer I need to write functional designs for creating reports and Infosets.For the same I need to know what should be our approach and what all things we should keep in mind.and how creating reports and infosets is different from the ones in SAP  R/3.
    Thanks and best regards
    Rajeev

    I am sorry but your question does not seem to make much sense.
    Can you please rephrase your question?

  • How to create items and BOMs using web services

    Hi All,
    I need to create, change and read Items and BOMs through web services (using SOA Gateway, right). I found this one here: "Process Item (convenience wrapper version)" or "Process Item" within
    Internal Name     EGO_ITEM_PUB
    Type               PL/SQL
    Product          Advanced Product Catalog
    Status          Active
    Business Entity     Catalog Item
    Right now, I don't know how to use it. If somebody has a simple example to create a single item, this would be perfect! Which one would be the right one to read detailed information about an existing item?
    The second object I need to maintain (create, change and read) is BOM. Which API can I use here?
    btw: I use EBS 12.1.1 on windows.
    Many thanks,
    Konrad

    Hi!
    Thanks for your quick answer but unfortunately, I must admit that I'm an absolute beginner with Oracle and EBS and so things like:
    Enable trace and generate the tkprof file or open the form using forms builder to get the name of the API used in thta screen.or
    Please check e-trm site for your question do not help me to much :-(
    Any other advice?
    Konrad
    Api's in EBS
    Re: Api's in EBS
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    Fixed Asset API
    List of API
    Re: List of APIs
    Regard
    Helios

  • How to create software request form using Info path functionality?

    Hi All,
    i am trying to create a Software Request Form using Info path functionality. Following are the steps:
    1. Users will fill out the form with all necessary fields.
    2. once they click on Submit button, it will send an email to two specific groups with a link so that they can see the form and Approve/Deny or can put comments on that.
    Thanks in advanced!

    Hi Rakib,
    There are many ways you can achieve this.
    Either by Creating a SharePoint list and then modify it using InfoPath to get all your required fields added
     or
    Use InfoPath application and select any template or blank form template to get all your required fields added and then publish it to SharePoint site
    For the second step you can create an OOTB workflow which can send email to view an approve items using Approval workflow feature
    For the advance notification you can use SPD workflows as well.
    Refer this article for more on InfoPath and SPD integration - http://gallery.technet.microsoft.com/office/Step-By-Step-build-30f84363
    Let us know if this helps, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • How to create fill-in form using "Pages".

    Is there a way to create a standard form where the document starts with text that cannot be edited.  Then, the user, could use a tab to fill in information.
    ie.  A template of a fax form where the tab is used to fill in changable date, (phone #).

    AFAIK, Pages does not support this. To create forms, you can try Adobe Acrobat, Microsoft Office, OpenOffice or NeoOffice. (Be warned, it is not simple in any of them).

  • How to create online fillable form using acobrat 7.0 ?

    I want to create an online fillable form but seems like a fill able PDF form is good to enter the information when end user wants to print the document with the filled information. They won't be able to save the filled information unless they have adobe acrobat and every user don't have acrobat. Majority of users will have adobe reader only which does not have the feature of saving the document with the filled information.
    How can I receive the information from this fill able PDF form ?
    I have seen on many website that, they people can fill out the form online and submit the information.
    I know a way too add submit button using acrobat 7 designer but that is very complicated because the user will have to send xml data and i will have to import the xml data into the original pdf form which is very time consuming and not a good idea when i have to deal will 1000 forms every week.
    when a personal is filling a fillable form (which i will upload on my website), that pdf form can't be send directly to me with data in it ?
    this seems to be very complicated.

    For AA7, you can set the file to submit the data, not the entire form. You would have the FDF data file submitted to you. The e-mail feature is not very reliable, but that was not your question. When you receive the FDF file, you may be able to click it and have it open in the form (if you did not move the form and such -- it has some folder information in the FDF). Otherwise, you can open the form and use the form tools to import the data -- forgot where it is in AA7. The end result of the import will be the same display as the submitter had in the form. You can then save the form to a different name. There may be some data handling within Acrobat 7, I don't remember. If not, you might want to get the FDF Toolkit from Adobe and set up some data manipulation with the toolkit to put data in a database or such.

  • How to create a smart form using the purchase order

    hi everybody............
    i have created one purchase order, i want to print that PO using smartforms rather than scripts. how can i do it, can anyone help me out in solving the issue. i am using the version sap 4.7
    Edited by: mhyderali on Aug 21, 2009 4:08 PM

    Hi,
    Before answer your question few things i would like to kno:
    1. currently is there any script is printing while displaying output.
    2. do u allready hae a smartform or you are going to develop a smartform.
    3. if you dont have a smartform and there is a script attached then you can convert script into smartform and then you can change in the smart form accordingly.
    4. after devloping a new smart form or converting script into smartform what you need to do is go to V/83 transaction give Output Type which is associated with script and Application area (for purchase order i.e. EF). then press ok screen will display here you can change the name of your form name under the form column.
    6. if you dnt have the Output type then you need to create a output type for the purchase order.
    Please let me know if you have still some question.
    Thanks
    Narendra

  • How to create SQL Connections String using JSP

    Hi, Dear I wrote sample Jsp program(Create a table and Inserted to Table) using SQLConnection
    I got this Error, how to rectify please help me?
    This is my Connection String
    <%
    String driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
         Class.forName(driver).newInstance();
         Connection con=null;
         ResultSet rst=null;
         Statement stmt=null;
         try
              String url=java.sql.DriverManager.getConnection("jdbc:sqlserver://10.1.5.6:1433;Database=manickaraj;User=sa; Password=test*");
              con=DriverManager.getConnection(url);
              stmt=con.createStatement();
         catch(Exception e)
    System.out.println(e.getMessage());
         if(request.getParameter("action") != null)
              String CategoryName=request.getParameter("Category1");
              String Description=request.getParameter("Description1");
    String Status=request.getParameter("Status1");
              stmt.executeUpdate("insert into Category(CategoryName,Description) values('"+CategoryName+"','"+Description+"','"+Status+"')");
              rst=stmt.executeQuery("select * from Category");
    %>
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 5 in the jsp file: /CategoryAction.jsp
    Generated servlet error:
    C:\Documents and Settings\manickaraj\.netbeans\5.5\apache-tomcat-5.5.17_base\work\Catalina\localhost\SampleJsp\org\apache\jsp\CategoryAction_jsp.java:61: incompatible types
    found : java.sql.Connection
    required: java.lang.String
    An error occurred at line: 5 in the jsp file: /CategoryAction.jsp
    Generated servlet error:
              String url=java.sql.DriverManager.getConnection("jdbc:sqlserver://10.1.2.4:1433;Database=manickaraj;User=sa; Password=test*");
              ^
    1 error
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)

    package shop;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.sql.Statement;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    public class DAClass {
         private static Connection conn;
         private static ResultSet rs;
         private static PreparedStatement ps;
         public static void connect(String dsn, String un, String pwd) {
              try {
                   //access or Mysql odbc connectivity
                   //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   //conn=DriverManager.getConnection("jdbc:odbc:"+dsn,un,pwd);
                   //mysql
                   //Class.forName("com.mysql.jdbc.Driver");
                   //conn=DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/eshop?user=root&password=root");
                InitialContext ctx = new InitialContext();
         DataSource ds = (DataSource) ctx.lookup("jdbc/eshop");
          conn = ds.getConnection();
         //DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/MySQLDB")
              catch(Exception e) {
                   //return "not soory";
         public static boolean chkPwd(String un, String pwd) {
              try {
                   boolean b=false;
                   ps=conn.prepareStatement("select * from cust_info where cust_name=? and cust_pwd=?");               
                   ps.setString(1,un);
                   ps.setString(2,pwd);
                   rs=ps.executeQuery();
                   while(rs.next()) {
                        b=true;
                   return b;
              catch(Exception e) {
                   return false;
    }changed the code like this other part is same.implemented connection pooling but still its too lazy loding can you guide me?

  • How to create Folder and subFolder using web services

    Hi,
    Today I've been working with some Share Point develompment but the truth is that I can't just get it.
    Can any body help me with some easy links to start Share Point Development?
    Here is wath I'm trying: I need to create a new folder (lets say Folder1) inside a Document library. After Folder1 is created, I need to create a new Folder inside Folder1 (lets say Folder1.1) and so on.
    Until now, I'm able to create Folder1 but after that I don't know how to continue creating subfolders.
    It's important to say that I would like to solve this problem by using webservices and let de Microsoft.Sharepoint.dll as just in case.
    I hope somebody help me.
    Thanks.

    Hi Steve,
    I need to create a folder structure(e.g folder1/folder2) by the running the program once.I tried calling the UpdateListItemCreateFolder recursively and passed an extra rootFolder parameter.I changed the RootFolder attribute as shown below but the code isnt working.Please let me know the right procedure to create a folder structure in a list.
    public
    static void UpdateListItemCreateFolder(string folderName, string rootFolder)
    ListService.
    Lists listProxy = new ListService.Lists();
    string location = "http://localhost:414/Documents/one" + rootFolder.ToString();
    string xmlconst = "<Batch OnError='Continue' RootFolder='" + location.ToString() + "'><Method ID='1' Cmd='New'><Field Name='ID'>New</Field><Field Name='FSObjType'>1</Field><Field Name='BaseName'>!@foldername</Field></Method></Batch>";
    listProxy.Url =
    "http://localhost:414/_vti_bin/lists.asmx";
    listProxy.UseDefaultCredentials =
    true;
    XmlDocument doc = new XmlDocument();
    xmlconst.Replace(
    "!@root", location);
    string xmlFolder = xmlconst.Replace("!@foldername", folderName);
    doc.LoadXml(xmlFolder);
    XmlNode batchNode = doc.SelectSingleNode("//Batch");
    XmlNode resultNode = listProxy.UpdateListItems("Documents", batchNode);

  • How to create report and print able pages in 10.1.3.1 ?

    hi
    thank you for reading my post
    how i can create a print able page in jdeveloper ?
    indeed i need to make some reports in my web application , then users should be able to print those files.
    does any one has some experience with report generation and Jdeveloper ?
    any tutorial / tip or sample could be very usefull.
    thanks

    PDF, Excel, HTML reports may be generated in JDeveloper by:
    1. Integrating JasperReports in JDeveloper.
    JasperReports and Jdeveloper
    http://technology.amis.nl/blog/index.php?p=346
    http://jasperreports.sourceforge.net/
    2. Integrating XML Publisher in JDeveloper.
    Re: Oracle's XML Publisher in JDeveloper and XSQL Servlet
    3. PDF Reports may be generated with XSQL.
    http://technology.amis.nl/blog/?p=1182

Maybe you are looking for

  • If statement in PDF form

    Problems getting an if statement to work under the custom calculation TOTAL HPI text field is counting the number for options selected for checkboxes hpi1-8 I want the text field BRIEFHPI to display X if if the TOTAL HPI is >=3 I want the text field

  • I have tried to add a second nano to my computer

    Hi, I've just bought a second nano, and when I plugged it in using my existing usb cable from my previous nano, itunes did not recognise it. Windows found it displaying a message "new device found" and I think it is now trying to format it with some

  • SRM 7.0 Purchase Order Response always in status "In process" after confirm

    Hello experts, this problem is similar to the thread [SRM-SUS Purchase Order Response always "In Status"; which has been not finally responded. My problem exists in an environment without SUS. When a buyer confirms a PO response (POR) without any cha

  • Output is not going to Printer Directly for XML (PDF) Output

    Hi, I am trying to print the AP Check Advice output directly to printer,using FND_REQUEST.set_print_options before submission of concurrent request. This was working perfectly,when report was RDF(with PDF) output. I changed it as XML with PDF output.

  • Incoterms from Ship-to instead of Sold-to

    Dear forum Is there any way of getting the incoterms copied from the Ship-to party customer master (Sales area data/Billing document data) in the sales order (created with VA01) copied into the fields VBKD-INCO1 and VBKD-INCO, instead of the standard