How to create graphs on JSP page in JDeveloper 10.1.3

Hi all,
Is there an easy way to create graph objects with JDeveloper 10.1.3? I have taken a look to some tutorials, but it looks like they all use the "drag/drop graph from the data control palette" method.
E.g. I got example 88 to work from http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html, but I have no idea how to get the BIGraphDef1.xml object and how to link it to a set of data.
Are there some tutorials to show how graphs can be used in JDev 10.1.3?

Frank,
This is what I did to implement the graphic manual, but I think, I forgot something...
1. create a new application with projects DataModel and UserInterface
2. in the DataModel I created a similar master/detail view as the one of Steve, this is named:
TestModuleDataControl
\--DepView
__\--Deptno
__\--Dname
__\--Loc
__\--EmpView1
____\--Sal
3. I created a new jspx page and added a graph tag:
<f:verbatim>
<graph:Graph data="${bindings.DepartmentsEmployeesInDepartmentGraph}"
imageHeight="200" imageWidth="400"/>
</f:verbatim>
4. in the page definitions I added
<graph id="DepartmentsEmployeesInDepartmentGraph"
IterBinding="EmployeesInDepartmentIterator"
ControlClass="oracle.dss.graph.Graph"
SeriesLabel="Ename"
GraphPropertiesFileName="userinterface.BIGrap1hDef1"
SeriesType="SINGLE_SERIES">
<AttrNames>
<Item Value="Sal"/>
</AttrNames>
</graph>
5. I added also the iterator:
<iterator id="EmployeesInDepartmentIterator" Binds="EmpView1" RangeSize="10"
DataControl="TestModuleDataControl"/>
6. I copy/pasted the BIGraphDef1.xml from Steve's project into 'Application Sources'\userinterface.
7. in the web.xml file in WEB-INF I added:
<servlet>
<servlet-name>GraphGeneratorServlet</servlet-name>
<servlet-class>oracle.jbo.html.jsp.graph.GraphGeneratorServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>GraphGeneratorServlet</servlet-name>
<url-pattern>/GraphGeneratorServlet</url-pattern>
</servlet-mapping>
8. when I run the page, I can't see the graph and there are also no errors. I think I mis a global setting somewhere...
Is there anything I forgot to do?
note: if I add a new jsp page into steve's application, I do can see the graph if I perform the steps mentioned above...
I just found out that, If I create the graph on a page which is in the root directory, then it works. If I put it in a subdirectory, it doesn't:
- create graph as mentioned above on a page: web content/myGraph.jspx --> works
- create graph as mentioned above on a page: web content/app/myGraph.jspx --> doesn't work...
Does somebody know where to put a setting/parameter to get the Graph visible in the subdirectory app?

Similar Messages

  • How to develop and Run .jsp page from Jdeveloper 10g

    Dear All,
    I need to develop one small JSP page using Jdeveloper10g. pls share information How to develop and Run .jsp page from Jdeveloper 10g.
    Thanks in Advance,
    Hanimi.

    Hi Gyan,
    Any Idea how to get DB connection for JSP Pages.
    Our Java guys developed one JSP page for Login page.
    After Log in instead of standard responsibilites page we calling custom jsp page, For getting DB connection they defined one properties file and hard coded DB details on that file and calling, but client is not accepting hard coding.
    Pls give any idea for getting DB connection directly in JSP pages.
    Hanimi.

  • How to create graph by JSP

    How to create graph by JSP

    Create an image [ http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Image.html ], draw on image [ http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics.html ], output image in png format [ http://java.sun.com/j2se/1.5.0/docs/api/javax/imageio/ImageIO.html ].

  • How to create a global error page?

    I created a small application, for which I need a global error page. I know how to navigate through the jsp page through iserrorpage and errorpage. And I'm getting the error page. When I have any error in my servlet I'm not getting the error page displayed. So I need a global error page. Can anyone help on this?
    Thanks.

    Please do not crosspost the same question over all places. It is rude in terms of netiquette.

  • How to print report in jsp page?

    excuse me,i am new to jsp
    may i know how to pritn report in jsp page or html?
    tq

    here is a hacked up example.. i ripped out a lot, so it may not compile, but you get the idea... the full version is really long and not much new info.. just all awt/display stuff...
    package rowe;
    import javax.swing.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import java.sql.*;
    import utility.*;
    import java.awt.print.*;
    public class rowePrint extends JFrame implements ActionListener, Printable{
         String printType = "";
         static JButton j = new JButton("Print");
         FontMetrics fm;
         String jID, promotion, product, jComments;
         public void getInfo(int jid) {
              ResultSet rs;
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   Connection conn = DriverManager.getConnection("jdbc:odbc:rowe");
                   Statement stmt = conn.createStatement();
                   rs = stmt.executeQuery("select j.id as jID, j.comments, p.title as pTitle, p.product, p.packagingCartonCost, p.foldingQuarterCostPerM, p.foldingQuarterCostPerM, j.customizationOption as setupFee, p.perMcost, p.qtyCarton, d.name as dName, d.contact as dContact, d.email as dEmail, d.address as dAddress, d.city as dCity, d.state as dState, d.zip as dZip, d.phone as dPhone, d.fax as dFax, r.name as rName, j.totalQty, j.orderIn, j.estFreight, j.miscCost, j.coverSelection, j.imprintSelection from jobs j, promotions p, dealers d, reps r where j.promotion = p.id and j.dealer = d.id and j.rep = r.id and j.id = " + jid);
                   rs.next();
                   jID = rs.getString("jID");
                   jComments = rs.getString("comments");
                   promotion = rs.getString("pTitle");
                   product = rs.getString("product");
              } catch (Exception e) {
                   System.out.println("getinfo: " + e);
       public void actionPerformed(ActionEvent e) {
            if (e.getSource() instanceof JButton) {  
                   wookie();
         public void wookie() {
              PrinterJob printJob = PrinterJob.getPrinterJob();
              Paper paper = new Paper();
              PageFormat page = new PageFormat();
              paper.setImageableArea(0, 0, 600, 780);            
              page.setPaper(paper);
              printJob.setPrintable(this, page);
              try{
                   //printJob.pageDialog(page);
              //     if (printJob.printDialog()) {
                        printJob.print();
              } catch (Exception e) {
                   System.out.println("wookie1" + e);
         public static void main(String[] args) {
              rowePrint at = new rowePrint("Invoice");
              at.getInfo((new Integer(args[0])).intValue());
              at.drawShapes();
         //     at.wookie();
         public void drawShapes() {
              setBounds(0, 0, 670, 550);
              addWindowListener(new WindowAdapter() {public void windowClosing(WindowEvent e) {System.exit(0);}});
              j.setBounds(10, 10, 10, 10);
              j.addActionListener(this);
              getContentPane().setLayout(null);
              getContentPane().add(l);
              getContentPane().add(j);
              show();
         public rowePrint(String s){
              printType = s;
         public void paint(Graphics g) {
              g.setFont(new Font("Serif", Font.BOLD, 18));
              g.drawString(promotion, 20, 30);
              g.setFont(new Font("SansSerif", Font.PLAIN, 4));
              g.drawString("" + new java.util.Date(), 20, 37);
              g.setFont(new Font("Serif", Font.BOLD, 21));
              g.drawString("Rowe Furniture", 440, 35);
              g.fillRect(440, 40, 145, 25);
              g.setColor(Color.white);
              fm = g.getFontMetrics(new Font("Serif", Font.BOLD, 21));
              g.drawString(printType, 512 - (fm.stringWidth(printType) / 2), 60);
        public int print(Graphics g, PageFormat pf, int pi) throws PrinterException {
            if (pi >= 1) {
                return Printable.NO_SUCH_PAGE;
              paint(g);
            return Printable.PAGE_EXISTS;
    }

  • How to create a template for pages in a book

    How to create a template in Pages to create camera ready pages for publishing a book?

    Nothing is "camera ready" these days, it is all digital.
    What is it you need to know, a book can take many forms.
    Does it contain color photos, spot colors, purely black ink etc?
    Peter

  • "How to create graphs in Reports"

    Hi All,
    Please anybody help me how to create graphs in the BEx Analyzer and whenever the reports will be refreshed the graphs should also be refreshed with the updated data.
    Help much appreciated.
    I will assign points.
    Thanks and Regards,
    Sunil Morwal.

    Hi Sunil,
    You can get charts in Bex Analyzer. After you execute the report, from the Tools menu > Insert Chart. You can position and edit the chart as desired and save this as a workbook.
    Hope this helps...
    Regards.

  • How to do transactions in jsp pages using Java & MySQL ?

    Hi,
    I'm a newbie..
    I'd like to know "How to do transactions in jsp pages using Java & MySQL ?"
    Platform: Windows XP, Apache Tomcat 5.5, MySQL 5, Java bean without EJB
    what are the the different types of transactions? Differences between them?Pls provide examples?
    Which among them is the best method to implement a transaction?
    Pls help me...
    thnx in advance...

    http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html

  • How to create autofilter in excel page using jxl api?

    Hi Friends,
    I am using jxl api for excel generation. Its no problem
    but i need to set auto filter options. I am search in this API package but i can't find it.
    Any one know how to create autofilter in excel page using jxl api?.
    Please ..... Its urgent.... ...
    Thanks

    Hi,
    Please mail me on [email protected] if u will find any solutions, i will do the same if i will find any...
    Thank u in advance,

  • How to create graph through form9i

    dear,
    I mant to know how to create graph in form 9i.Right now i have no idea about graphs use in form9i.
    please reply me as soon as possible.
    my mail id is [email protected]
    If you have any answer related to this problem please mail me in my mail id that i have given .
    with regards
    monika gupta

    Hi Monika,
    http://www.oracle.com/technology/products/reports/htdocs/faq/faq_migration.htm
    http://www.oracle.com/technology/products/reports/10gr2/Reports_guide_to_changed_functionality.pdf
    http://download.oracle.com/docs/html/A90900_01/rwtutorial_graph.htm#1005697
    How do I migrate my charts from Oracle Graphics to the new graph format in Oracle Reports 10g?
    Since release 9i, Oracle Reports uses Business Intelligence Beans (BI Beans) to create and display graphs in reports. There is no direct migration path from Oracle Graphics to the BI Beans graphing functionality. As such, the user will need to rewrite all of their graphs using the new Graph Wizard within the Oracle Reports Builder 10g. Oracle Reports 10g supports over 50 graph types, including 3D graphs. However, keep in mind that it does not support some special types, such as Gantt charts.
    It seems direct graph 6i migration is not possible from reports10g.
    It is asking to use the chart wizard again with your query.
    Please follow the above two link it may helps u a lot.

  • How to create tab in OAF page

    Hi,
    is it posssible to create tab button in OAF,if yes then how? If anybody knows then please let me know.
    Thanks & regards
    divya

    Hi,
    How to create HTML Tabs ON pages
    To achieve this effect in your application:
    1. Create a function for each page that you want to display.
    2. Create a menu of type "HTML Tab" for each tab you want to display.
    3. Add each function to its corresponding tab menu. Do not specify any Prompt values.
    4. Create a menu of type "Home Page."
    5. Add the tab submenus to the "Home Page" menu.
    Add the tab menus in your desired display sequence from left to right. The leftmost tab should be
    added first.
    Remember to specify Prompt values for each tab submenu. These values display as the tab text.
    6. Add your "Home Page" menu to your responsibility menu.
    7. Make sure your user has access to this responsibility before you try to test the menu.
    Please go through Dev Guide Tabs/Navigation.
    Thanks,
    Gaurav

  • How to create links to other pages i create??

    I have finished my "homepage" and it has 5 buttons on it.("home",
    "Contact us", etc.).
    I have no idea how to create links to other pages i create.
    For example, if the user clicks on "Contact us", i wnat contact information
    to appear. So, do i create another html document that will contain contact
    information and then call that page whenever the user clicks "Contact us". Or
    do i just create another applet that contains contact information and display
    the applet in the appropriate area, whenever the user clicks "contact us".
    Hope that wasnt confusing. Bascially, I am sitting here looking at my buttons, not knowing
    what code to put under the actionPerfomed part of each button.
    thanx
    trin

    ... judging from your question... the best way i think is to create another page...
    .... so when ur user clicks on Contact Us..... he/she will be taken to another page...
    there are other techniques besides this.... but it is always better to stick with the easiest one
    ... so you need to create separate pages for all of your links....
    ... if you have any questions... let me know
    .... have fun

  • How to call Servlet from jsp page and how to run this app using tomcat..?

    Hi ,
    I wanted to call servlet from jsp action i.e. on submit button of JSP call LoginServlet.Java file.
    Please tell me how to do this into jsp page..?
    Also i wanted to execute this application using tomcat.
    Please tell me how to do this...? what setting are required for this...? what will be url ..??
    Thanks.

    well....my problem is as follows:
    whenever i type...... http://localhost:8080/appName/
    i am getting 404 error.....it is not calling to login.jsp (default jsp)
    but when i type......http://localhost:8080/appName/login.do........it executes servlet properly.
    Basically this 'login.do' is form action (form action='/login.do').....and i wanted to execute this from login jsp only.(from submit button)
    In short can anyone please tell me how to diaplay jsp page using tomcat 5.5
    plz help me.

  • How to create a follow up page in scripts using Duplex and Tumble Duplex

    How to create a follow up page in scripts using Duplex and Tumble Duplex in print mode of scripts ?

    Hi ,
    Set the next page property as duplex , and change the print property back to back

  • HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH

    Hi,
    HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH?
    Thanks

    emekaco wrote:
    Hi,
    HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH?
    ThanksSTOP SHOUTING!
    now, while displaying the form generate some random number, or take the current time in millis or whatever. Put that number in a hidden field. Insert that unique number along with the real data into the database, but before you do check if the number already exists. If it does you can be pretty sure this is a resubmit of the same data, so don't allow it. This is one way of many to prevent resubmission of existing data.
    A good way to prevent a refresh from resubmitting altogether is to do a redirect to a result page right after you deal with the POST request. When the user presses refresh then, he/she will refresh the redirect and not the form submit.

Maybe you are looking for