Use an applet in a Jsp to display data from Oracle DB

Hi everyone, I'm very new to java my question is:
Is there a way to display an applet like a table within a Jsp to display data from a Oracle DB? The thing is that I would be able to show this applet only at the click of the submit button in my html form.
Please help me any sample code are welcome
Thank you in advance
Fabry

Hi,
Why can't you use a Java Bean which takes the data from the database. Then call this bean from the JSP page using <jsp:useBean> tag.
Ok,if you dont want a Java Bean and if you want to use an applet in a JSP file, you will have to use <jsp:plugin>tag. Here is an example
<html><head><title> Demo Applet</title></head>
<body bgcolor="rd">
<% if (request.getParameter("SUBMIT") != null) {%>
<jsp:plugin type="applet" code="DemoApplet.java" codebase="." name="Demo" height="400 with="300>
<jsp:fallback> Plug in not supported by your browser</jsp:fallback>
</jsp:plugin>
</body></html>
Hope this will help you.
Rgds,
Ravi Shankar

Similar Messages

  • Walkthrough: Displaying Data from Oracle database in a Windows application.

    This article is intended to illustrate one of the most common business scenarios such as displaying data from Oracle database on a form in a Windows application using DataSet objects and .NET Framework Data Provider for Oracle.
    You can read more at http://www.c-sharpcorner.com/UploadFile/john_charles/WalkthroughDisplayingDataOracleWindowsapplication05242007142059PM/WalkthroughDisplayingDataOracleWindowsapplication.aspx
    Enjoy my article.

    hi,
    this is the code :
    public class TableBean {
    Connection con ;
    Statement ps;
    ResultSet rs;
    private List perInfoAll = new ArrayList();
    public List getperInfoAll() {
    int i = 0;
    try
    con = DriverManager.getConnection("url","root","root");
    ps = con.createStatement();
    rs = ps.executeQuery("select * from user");
    while(rs.next()){
    System.out.println(rs.getString(1));
    perInfoAll.add(i,new perInfo(rs.getString(1),rs.getString(2),rs.getString(3)));
    i++;
    catch (Exception e)
    System.out.println("Error Data : " + e.getMessage());
    return perInfoAll;
    public class perInfo {
    String uname;
    String firstName;
    String lastName;
    public perInfo(String firstName,String lastName,String uname) {
    this.uname = uname;
    this.firstName = firstName;
    this.lastName = lastName;
    public String getUname() {
    return uname;
    public String getFirstName() {
    return firstName;
    public String getLastName() {
    return lastName;
    ADF table code:
    <af:table value="#{tableBean.perInfoAll}" var="row"
    binding="#{backing_Display.table1}" id="table1">
    <af:column sortable="false" headerText=""
    align="start">
    <af:outputText value="#{row.firstName"/>//---> Jdeveloper 11g doesn't allow me to use this.. it says firstName is an unknown property..
    </af:column>
    </af:table>
    Please tell me is this the way to do it.. or is it a must to use the DataCollection from the data controls panel...
    Thanks...

  • JSP to display Chinese From Oracle Unicode?

    My Oracle 9iR2 Database use Unicode as default character set.
    However, I can not see Chinese from JSP and use <%@ page contentType = "text/html;charset=UTF-8" %>.
    What is the solution to i18n?

    Hi,
    Why can't you use a Java Bean which takes the data from the database. Then call this bean from the JSP page using <jsp:useBean> tag.
    Ok,if you dont want a Java Bean and if you want to use an applet in a JSP file, you will have to use <jsp:plugin>tag. Here is an example
    <html><head><title> Demo Applet</title></head>
    <body bgcolor="rd">
    <% if (request.getParameter("SUBMIT") != null) {%>
    <jsp:plugin type="applet" code="DemoApplet.java" codebase="." name="Demo" height="400 with="300>
    <jsp:fallback> Plug in not supported by your browser</jsp:fallback>
    </jsp:plugin>
    </body></html>
    Hope this will help you.
    Rgds,
    Ravi Shankar

  • How to Display Data from Oracle E Business Suite tables in ADF

    Hi,
    I am new to ADF.
    I have a requirement to Create an ADF page for Search Results Screen.
    However the result data is from one of the Oracle E Business Suite Tables.
    ie I need to create a Screen where user will enter a Purchase Order Number and Click on Button.
    The Screen should show details from PO_HEADERS_ALL (from Oracle ERP Database Table) based on the entered PO Number.
    Is it possible to implement the same? Can some one guide me how to do it?
    Thanks,
    Kamath

    Hi,
    Is there a way where I can create a VO in ADF to which I can insert records dynamically from a source and the Source connects to E Business Suite tables and returns results ie BPEL etc.
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcadvvo.htm#sm0341
    Just replace the PLSQL example with your data source
    Can ADF invoke SOA which inturn connects to Oracle E Business Suite and fetches the data from Oracle tables and pass it back to ADF? Is it possible
    Yes. Just use a WS proxy client to access the SOA entry point (WSDL) and follow the link above
    Frank

  • Problem Displaying data from oracle in JTable

    Please can any one help me? I have a problem displaying the data fetched from oracle database(ResultSet) in JTables. Can any one provide me with any possible way out(and any alternative).

    User,
    As suggested in the other post - Google/Books/find a mentor is the best option.

  • Using JTables to display data from a text file

    How do I display data from a .txt file into a column inside a JTable?

    dont quite get the "vectors" part..
    by the way, my program is as follows
    * Damn Java ..
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    public class ScoreBoard extends JPanel {
    private boolean DEBUG = false;
    public ScoreBoard() {
    super(new GridLayout(1,0));
    String[] columnNames = {"Player's Name",
    "Time Completed",
    "$ Amount Earned $"};
    /* Object[][] data = {
    {"1",
    new Integer(5), new Integer(500)},
    {"2",
    new Integer(5), new Integer(3200)},
    {"3",
    new Integer(5), new Integer(1000)},
    {"4",
    new Integer(5), new Integer(100)},
    {"5",
    new Integer(5), new Integer(200)},
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(600, 90));
    if (DEBUG) {
    table.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    printDebugData(table);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this panel.
    add(scrollPane);
    private void printDebugData(JTable table) {
    int numRows = table.getRowCount();
    int numCols = table.getColumnCount();
    javax.swing.table.TableModel model = table.getModel();
    System.out.println("Value of data: ");
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + model.getValueAt(i, j));
    System.out.println();
    System.out.println("--------------------------");
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("ScoreBoard");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    ScoreBoard newContentPane = new ScoreBoard();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    and i want to display the player name from a textfile.txt to the player column instead of hardcoding it like above. Thanks!

  • Issue with display data from infoset

    Dear Experts,
    When I am trying to display data from BI INFOSET in (Execute in background ctrl+F2)backend it is working fine but when in try to run the execution in forground (execute F8) then the system gets hang.. and time out. could any one has this kind of experience. if so kindly let me know do i need to implement any patch or  else which way i can do work to resolve this issue.
    Thanks in advance.
    Mannu

    Hi Krishna,
    I have tried as you have suggested ie. using Tcode RSISET for displaying data but still i have the same issue.
    Could any one post any additional suggestions to follow.
    Thanks in advance,
    Mannu

  • Display data from CSV file in iWeb page

    Hi,
    I like to display data from a CSV file in iWeb page if a date value from CSV file matches todays value from the system. Here is an example.
    CSV data values
    01/20/2011,Sunny,87
    01/21/2011,Cloudy,100
    01/22/2011,Rainy,60
    If today's date value is 01/21/2011 the page should display 01/21/2011 Cloudy 100 in a tabular format.
    Appreciate your help in providing HTML code for this issue.
    Thanks

    I suspect there is a soft return in the excel database somewhere that can't be seen. Take the csv/txt file into notepad and look for a line that starts oddly compared to the others.
    I haven't had luck removing soft returns from excel files so I do this a rather odd way. I take the excel file into InDesign as a table, and then use find/change to replace any soft returns with nothing, then convert the text to table and then export the text out again by going export, and selecting text from the dropdown menu.
    For my money, I always save tab delimited text files from excel so that if a field does contain commas, it doesn't "trick" indesign into thinking a new field is beginning or not... instead the field delimiters are tabs and they are unlikely to have been used in the excel database.
    If you do choose to use this indesign import method of mine to clean up the database, i also noticed two things in your screengrab: first was that some fields have spaces at the start of the text... easy enough to fix with a GREP that looks for ^\s (start of a sentence followed by a space) and replace with nothing. The second thing is the T&C field that all entries (at least in the screengrab) all start the same – if all entries in the database start the same, couldn't that line be in the indesign file? Its only a small detail I know.

  • How do I display data from Multiple Queries in a spreadsheet?

    I am running Oracle forms 10g as a kicker to export a report (rdf 10.1.2.0.2) to PDF or Excel Spreadsheet - User's choice.
    Doesn't matter if I have desformat = SPREADSHEET, DELIMITEDDATA, or DELIMITED; I still get only the first query displayed when I run in spreadsheet format.
    How do I display data from Multiple Queries in a spreadsheet? Is this possible?
    Thanks in advance!

    Hi adam,
    did you search the forum? You will find a lot of threads handling the problem of Excel file access.
    In short: you need to use ActiveX (the RGT also uses ActiveX under the hood)!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to display data from a recordset based on data from another recordset

    How to display data from a recordset based on data from
    another recordset.
    What I would like to do is as follows:
    I have a fantasy hockey league website. For each team I have
    a team page (clubhouse) which is generated using PHP/MySQL. The one
    area I would like to clean up is the displaying of the divisional
    standings on the right side. As of right now, I use a URL variable
    (division = id2) to grab the needed data, which works ok. What I
    want to do is clean up the url abit.
    So far the url is
    clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end all
    I want is clubhouse.php?team=Wings.
    I have a separate table, that has the teams entire
    information (full team name, short team, abbreviation, conference,
    division, etc. so I was thinking if I could somehow do this:
    Recordset Team Info is filtered using URL variable team
    (short team). Based on what team equals, it would then insert this
    variable into the Divisional Standings recordset.
    So example: If I type in clubhouse.php?team=Wings, the Team
    Info recordset would bring up the Pacific division. Then 'Pacific'
    would be inserted into the Divisional Standings recordset to
    display the Pacific Division Standings.
    Basically I want this
    SELECT *
    FROM standings
    WHERE division = <teaminfo.division>
    ORDER BY pts DESC
    Could someone help me, thank you.

    Assuming two tables- teamtable and standings:
    teamtable - which has entire info about the team and has a
    field called
    "div" which has the division name say "pacific" and you want
    to use this
    name to get corresponding details from the other table.
    standings - which has a field called "division" which you
    want to use to
    give the standings
    SELECT * FROM standings AS st, teamtable AS t
    WHERE st.division = t.div
    ORDER BY pts DESC
    Instead of * you could be specific on what fields you want to
    select ..
    something like
    SELECT st.id AS id, st.position AS position, st.teamname AS
    team
    You cannot lose until you give up !!!
    "Leburn98" <[email protected]> wrote in
    message
    news:[email protected]...
    > How to display data from a recordset based on data from
    another recordset.
    >
    > What I would like to do is as follows:
    >
    > I have a fantasy hockey league website. For each team I
    have a team page
    > (clubhouse) which is generated using PHP/MySQL. The one
    area I would like
    > to
    > clean up is the displaying of the divisional standings
    on the right side.
    > As of
    > right now, I use a URL variable (division = id2) to grab
    the needed data,
    > which
    > works ok. What I want to do is clean up the url abit.
    >
    > So far the url is
    clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end
    > all
    > I want is clubhouse.php?team=Wings.
    >
    > I have a separate table, that has the teams entire
    information (full team
    > name, short team, abbreviation, conference, division,
    etc. so I was
    > thinking if
    > I could somehow do this:
    >
    > Recordset Team Info is filtered using URL variable team
    (short team).
    > Based on
    > what team equals, it would then insert this variable
    into the Divisional
    > Standings recordset.
    >
    > So example: If I type in clubhouse.php?team=Wings, the
    Team Info recordset
    > would bring up the Pacific division. Then 'Pacific'
    would be inserted into
    > the
    > Divisional Standings recordset to display the Pacific
    Division Standings.
    >
    > Basically I want this
    >
    > SELECT *
    > FROM standings
    > WHERE division = <teaminfo.division>
    > ORDER BY pts DESC
    >
    > Could someone help me, thank you.
    >

  • Short dump MESSAGE_TYPE_X in displaying data from BPC Virtualcube

    Hi Experts,
    I am experiencing an error when try to display data from a BPC VirtualProvider Infocube (both from Workbench and with LISTCUBE transaction).
    This kind of virtualcube is auto generated by BPC.
    When I do some kind of selection I obtain this error: MESSAGE_TYPE_X
    Short text of error message:
    System error in program SAPLRRK0 and form CHECK_KHANDLE (see long text)
    Technical information about the message:
    Message class....... "BRAIN"
    Number.............. 299
    Variable 1.......... "SAPLRRK0"
    Variable 2.......... "CHECK_KHANDLE"
    I have another BPC vitualprovider and this doesnu2019t happen.
    I would use this cube inside a multiprovider, that has a BI cube too, and get the data through a BEx query. But the query throws the error and stopped.
    I know that there could be problems with BPC structures (i.e. changes in tech name when transporting it), but at the moment I donu2019t see other solution to compare BI to BPC data.
    I went through other posts in sdn forum for this issue, but I am not able to get the exact solution,
    please help
    Thanks,
    Marco
    System version:
    BW:     701 level 0007
    BPC:     750 level 0005

    Hi Lokesh,
    I read the note you have indicated.
    For the first note 1479393: I donu2019t have hierarchies and the error appears in a different program to what is indicated in the note. This is where terminated:
    Termination occurred in the ABAP program "SAPLRRK0" - in "CHECK_KHANDLE".
    The main program was "GP4LQ7N6RS4RUB6HA69UREYGPKB ".
    In the source code you have the termination point in line 34
    of the (Include) program "LRRK0F05".
    Furthermore, there are no calculated measures nor members in the MDX statement, because I just try to display the data from the virtualcube.
    For the second 1448691: yes, it could be a performance related problem. Indeed, when I apply stronger filters, the error doesnu2019t occur and I got the data. But the system is already patched to SAPKW70107.
    So, do you have any other ideas?
    Thanks,
    Marco

  • Retrieve data from oracle table, table name passed in runtime into JSP

    Hello All,
    I am new to JSP, i have a requirement,
    I need to retrieve data from oracle table, here table is passed at random. how to get the data displayed in JSP page.
    can any one help me in that
    thanks

    1) Learn SQL.
    2) Learn Java.
    3) Learn JDBC.
    4) Learn DAO.
    5) Learn HTTP.
    6) Learn HTML.
    7) Learn JSP/Servlet.
    8) Learn JSTL.
    9) Apply learned things and develop.
    Whenever you stucks, please come back and post the specific coding/technical problem here.

  • Display data from a virtual InfoCube

    Hi experts,
    When I tryed to display data from the virtual InfoCube 0FIGL_V40, I've got a dump.
    Please help me to solve this problem.

    Dear Akshay,
    Is it possible that the problem comes from R/3 since when I check the extractor 0FI_GL_40 with the RSA3 Tcode I've got the message:
    Errors occurred during the extraction --- Message no. RJ012
    I think that the pb has been solved by switching on the business function "Reporting Financials" . Inthe SAP source System -> TA: SFW5. Turn on Reporting Financials. Then I've no pb while testing the extractor.
    Pb solved.
    Many thanks
    Youness
    Edited by: Youness NAJI on Jan 13, 2010 4:39 PM

  • Display Data from multiple models in one table

    Hi Experts,
    Is it possible to display data from multiple models in one table smltnsly.
    I have created a table dynamically.Now I would like to display data from multiple models... If this possible,can anyone give me a lead as to how to do it..
    Regards
    SU

    Hi
    Your Model Nodes be
    Model1
    ---Output_Model1
    Attrib1
    Attrib2
    Model2
    ---Output_model2
    Attrib1
    Attrib2
    and the value node is
    ValueNode
    ---Attrib1
    ---Attrib2
    Now the coding.
    int size;
    IPrivate<ViewName>.IOutput_mode1Node  node1 = wdContext.nodeOuptut_Model1();
    IPrivate<ViewName>.IValueNodeElement elem;
    size = node1.size();
    for(int i=0; i<size; i++)
       elem = wdContext.createValueNodeElement();
       elem.setAttrib1( node1.getOutput_Model1ElementAt(i).getAttrib1() );
       elem.setAttrib2( node1.getOutput_Model1ElementAt(i).getAttrib2();
       wdContext.nodeValueNode().addElement( elem );
    similar code for Model Node 2
    Regards
    Abhimanyu L

  • Display data from BLOB column.

    Hi All,
    I want to display data from blob datatype field, which contains HTML and GIF both files.
    If I set it's property from file format IMAGE then i get data only gif.
    if anybody have answer plz revert back...
    awaiting...
    Juned

    Hi Juned
    What I suggest is that you may have overlapping fields. One to show HTML and other to show GIF. You need to add one more column to your table in order identify if the BLOB is GIF or HTML.
    In the Format Trigger of each of these two fields, inspect the value of flag column and hide one field if the datatype is not its type.
    For instance, if flag field is 0 then hide Image field and show HTML field. If flag field is 1 then show Image field and hide HTML field.
    Regards
    Sripathy

Maybe you are looking for

  • Enhancements in PI 7.0

    Hi, As Enhacement in adapter modules have been introduced in PI 7.0, so is there any such enchancement introduced with respect to proxies too. Regards Pragya

  • Need help identifying my master socket for broadba...

    Hi i am awaiting my line to go active for broadband but i just want to make sure the socket i am going to use is my master socket. I can only find 1 socket in my house and it has a T logo in the bottom corner. This socket is on the bottom of my stair

  • How do I get Quick Look to show .stl file 3d models?

    Hey folks Previous OS using quick look showed a picture of the 3d file (.stl format) used in 3d printing Upgraded to mavericks....no preview. Anyone know how I can get Quick Look to show a preview picture of the 3d model? Not sure how it worked in th

  • Deleted AD Users shown as online in Lync

    Hi, We are observing a strange behavior with Lync 2013 , users that doesn't exist in AD, Exchange , Lync are shown as active/available in Lync/outlook. Even deleted user accounts are appearing online while searching with complete sip address ex: test

  • System error in external facing portal

    Hi Gurus,          We are implementing an external facing portal,where all the SAP transactions will be published.We are having two different URL for for the portal running in the intranet and internet. In the ITS host name I have given the FQN of th