How to show Resultset content in Java

I had a PL/SQL package with a function get_references(), which supposely shows a list of description.
A java class calls the package's function as show below. The reality is the list of description never
shows up on my jsp page.
Is there anyway I can tell the content of the resultset prior to it reaches to the JSP page
while debugging in Java?
Here is what I tried to do in my java code:
see the SqlCall =
{? = call ref_anatomicallocs_pckg.get_references ()}
see the resultset for getAnatomicalLocs =
oracle.jdbc.driver.OracleResultSetImpl@13eca0b5
However, I'm seeing the oracle.jdbc.driver.OracleResultSetImpl@13eca0b5.
Do I have driver problem or something else?
Here is the function in the java code.
public ResultSet getAnatomicalLocs()
               throws SQLException
     int rtncode = -1,session_count = -1;
     if (connected_to_db)
     try
     String SqlCall = "{? = call ref_anatomicallocs_pckg.get_references ()}";
System.out.println ("see the SqlCall = " );
     System.out.println (SqlCall);
CallableStatement l_call = con.prepareCall (SqlCall);
     l_call.registerOutParameter(1,OracleTypes.CURSOR);
          l_call.execute();
          results = (ResultSet)l_call.getObject(1);
          System.out.println ("see the resultset for getAnatomicalLocs = " );
System.out.println (results);
          l_call.close();
     catch(SQLException exp)
          throw exp;
return results;
Many thanks in advance!

Where do you fetch from the ResultSet?
Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC

Similar Messages

  • How to show Certificate Content from IE

    Hi,
    how to show Certificate Content Window from IE. I dont like to write it by myself;).
    Does anybody know if its posible?
    Regards

    Using Firefox, simply click the padlock.
    Suspect IE is much the same.

  • How to show error message using java.awt?

    How to show error message using java.awt?
    Which is the class corresponding to the JOptionPane?
    Or I need to use Frame ?

    No, JOptionPane is swing!
    You would have to create your own frame, put your message in it, then show it.

  • How to show the content of a table (long text) in a scrollable textbox?

    Hi,
    I have to say first, many thanks to the ones who answers to threads in this forum, it's very helpfull when we're learning web dynpro!
    I have a RFC function that return a table containing a long text (node "it_text", with elements "Tdformat" and "Tdline").
    1) I want first to copy all the Tdlines in a new node "text_box" (that I made specially for the screen, it contains only the element "Tdline" [the text itself]);
    2) Then I want to show the content of the node "text_box" in a scrollable textbox on the screen (to show 8 lines of text, for example).
    How to do that easily?  What is the UI Element needed to show that?
    Thanks!

    If you want to display as it is then you can use Table UI element. You can change the design property to 'transparent' and set column header visibility property to none. Then you need not to write any code simple you can map the node to table field.
    Even with TextEdit you can achieve what you want. Try this code...
         StringBuffer tmpBuffer = new StringBuffer();
         for(int index=0;index<wdContext.nodeLines().size();index++)
              wdContext.nodeLines().setLeadSelection(index);
              tmpBuffer.append(wdContext.currentLinesElement().getLine()+"n");
         wdContext.currentContextElement().setData(tmpBuffer.toString());
    Regards
    Abhilash

  • How to display the contents of java.util.list in a frame???

    i should use awt only not applet...
    i need to display the contents of java.util.list in a frame...
    the contents contains rows queried from a oracle database.....
    the contents should be displayed similar to how a lable is displayed..
    please help me out..
    thanks
    dinesh

    Of course there is something in AWT:
    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/List.
    htmlagain, if you carefully read the question, he needs a
    table to display a JDBC result set. There is no
    pre-made table component in AWT.Well, I read that he filled the data into a java.util.List and now wants to display this list. So a List-component should be sufficient. But I might be wrong...
    -Puce

  • How to show direcotry content in Unix

    Hey
    Greeting,have a simple question for Java Gurus,I am using Tomcat and servlets for my projects running on NT platform connecting to Oracle/Sybase servers on Unix boxes my problem is I want to show directory contents on unix box.. show directory name , filesize, date etc on browser to select file and load into database.
    Please help me with code and ideas, partly or fully.
    Thanks in advance guys.

    If your servlet container is running on NT, the only way to show something on the remote unix is to telneting that unix box. You can look on the telnet task of Ant tool for examples. http://jakarta.apache.org/

  • How to show progress bar in java???

    Hey guys!!! can any one tell me how to show the progress bar when a processing is going on???Is it done by multithreading?? I have to import data from database kept in another machine into my database.It would take quite a longer time especially when database is quite large.I want to show the progress and every data being imported to the user so that user does not think that system has hanged on...Please help...

    i answered here:
    http://forum.java.sun.com/thread.jspa?messageID=9739423&#9739423

  • How to show the content of a data object in listbox

    Hello together,
    i have created a service employee_srv for my data object "Employee". How can I show the content of this data object in a listbox in my view, for example DropDownByKey.
    Regards
    Waldemar Schakiel

    Hi,
    An example to create a dynamic context in Webdynpro ABAP:
    data:
    rootnode_info TYPE REF TO if_wd_context_node_info,
    dyn_node TYPE REF TO if_wd_context_node,
    tabname_node TYPE REF TO if_wd_context_node,
    tablename TYPE string.
    rootnode_info = wd_context->get_node_info( ).
    cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
    parent_info = rootnode_info
    node_name = tablename " Data object Table name
    structure_name = tablename
    is_multiple = abap_true ).
    ***Bind data to Dynamic table:
    DATA: stru_tab TYPE REF TO data.
    FIELD-SYMBOLS:
    <tab> TYPE table.
    create internal table
    CREATE DATA stru_tab TYPE TABLE OF (tablename).
    ASSIGN stru_tab->* TO <tab>.
    dyn_node = wd_context->get_child_node( name = tablename ).
    Bind internal table to context node.
    dyn_node->bind_table( <tab> ).
    Shruthi

  • How to get php content with java ??

    i have made a php file what will display a number,
    here's a example
    <?php
    if ($action == "answer"){
    echo "18274926";
    ?>
    no i want to get the number with java
    so here's my java code
    import java.io.*;
    import java.net.*;
    import java.util.Date;
    class URLConnecties
        public static void main(String args[]) throws Exception
            int teken;
            URL url = new URL("http://www.gamer.mineurwar.nl/net/javachallenge.php?command=DaTe");
            URLConnection urlconnection = url.openConnection();
            System.out.println("Type inhoud: " +
                urlconnection.getContentType());
            System.out.println("Datum document: " +
                new Date(urlconnection.getDate()));
            System.out.println("Laatst gewijzigd: " +
                new Date(urlconnection.getLastModified()));
            System.out.println("Document vervalt: " +
                urlconnection.getExpiration());
            int lengteinhoud = urlconnection.getContentLength();
            System.out.println("Lengte inhoud: " + lengteinhoud);
            if (lengteinhoud > 0) {
                InputStream in = urlconnection.getInputStream();
                while ((teken = in.read()) != -1) {
                    System.out.print((char) teken);
                in.close();
    }if you change the url ro a .html file it displays the code correctly(source),
    but when trying to get the content of a php file (the number)
    it says that there is no content from the php file
    yhe source of the original php file what's in the code can be found at
    www.gamer.mineurwar.nl/net/javachallenge.txt

    The 'content' is generated dynamically by a PHP script so the "content lenght" can't be known in advance by the server. For this reason connection.getContentLenght() returns -1; it doesn't mean that there is no content, only that it can't be known how much there will be.
    To solve the issue, remove the if statement from around the while-loop:// if (lengteinhoud > 0) { DELETE THIS LINE
    InputStream in = urlconnection.getInputStream();
    while ((teken = in.read()) != -1) {
        System.out.print((char) teken);
    // } and this too

  • Need help for how to putting arabic content in java properties file

    Hi all,
    we have to support arabic in Java application.
    For that we are using java propeties file where key and value pair is used.
    In the Microsoft excel sheet arabic content is coming properly from right to left direction.
    When same thing is copied and paste in java properties file contents direction is reversed that is it is coming from left to right as in english.
    Please help how to put the arabic contents in propeties file
    Regards
    Vidya

    So in terms discussion.
    First I would suggest that you get a hex editor and validate exactly what is in the properties file. It appears to me that you are using one or more editors that are adjusting the display for you and thus that makes it hard to determine where the problem is. A hex editor should not adjust the display. Although even then you might want to right a simple java app and have it read bytes and print them just to validate that the hex editor isn't doing something.
    Only after you are exactly sure how the bytes appear in the file then proceed with other steps.
    For the java GUI only test the following.
    1. Properties file has it left to right then the java GUI displays it correctly right to left or not?
    2. Properties file has it right to left then the java GUI displays it correctly right to left or not?
    Myself I would expect that 2 should be the correct way to implement this. However that is dependent upon you correctly invoking the api as well. So if 2 is not working then you might want to look at the api. It might also have something to do with GUI display properties (of which I know even less.)

  • How to show the content for a perticular time period(consider 30 days)

    Hi,
    There is a requirement that content should reside the portal only for 30 days and then it should be archived. Archiving means that it should be searchable from portal but it should not be visible on the portal. How would that happen?. Kindly tell me if there is an OOTB from jdeveloper or we need to do coding for that..
    Thanks,
    Arun

    Archiving means that it should be searchable from portal but it should not be visible on the portal.Before I got to this point I thought: a peanut - just define the Expiry Date parameter as entry date + 30 (this can even be automated) and you are done.
    The issue is that expired items are not searchable (except, perhaps, some admin searches). Having said that, the original idea is still valid, it only needs few more precisions:
    a) "should not be visible on the portal" - what does that exactly mean for you? Content items can be visible in Document section (e.g. in Spaces), they can be placed directly to pages, or displayed via Document Service Task Flows such as Content Presenter, Document Explorer, etc. Either way, there is one method which will work for all: in WebCenter Content it's called Archiver. Originally, it was designed to dump content items to the disk, and then, you could easily upload them to another system (with different metadata, if you will). Since Archiver works also if you work with just one system, you can use it to "mass update" metadata of desired items (older than 30 days). Note, however, that this method might be quite slow if you work with a lot of data.
    b) "should be searchable" - the idea of the Archiver (or another method alike) is that you take the item from its place ("searchable"/"visible") and put it to a new one (just "seachable"). Again, the question is what "searchable" exactly means for you. Some methods might work with portal-only data (from where you wanted to have it removed), whilst others might be more "federated" (e.g. WebCenter Content has a search portlet where you can search any content in the repository).
    There are definitely ways to implement what you intend, but you should provide more details.

  • How to show the contents of a dropdown list with different colors

    Hi,
    I have a drop downlist on my dialog. I want to show each of its text attribute and its back ground with different color.
    Suppose I am showing 4 strings in the dropdown like Name1, Name2, Name3 and Name4, then how to change the color of each name and its background.
    Please let me know if it is possible.

    If the above asked is not possibe can we have an alternative as mentioned below :-
    A dropdown similar to the one shown in "Edit->Preferences->Grids->Colors" having our own text names instead of the default color names.
    So that I can show some color symbol and a text name along with it in my dropdown.
    One more query, is it possible to show the images/giff/png files in dropdown ?

  • How to get UCM content from Java class?

    Hello,
    I need to get UCM content from backend I mean from the Java class. Is there any way to do that? If anybody please give any resources it will be very helpful.
    Thanks and regards.

    Hi
    You mean to say that with JAVA API you want to search and retrieve the contents ? If yes , then you should use RIDC API for the same and that way you can use to do all the operations on UCM from the JAVA Api .
    Search this forum and you will get sample codes for the checkin , search , checkout operations .
    Documentation is available at : http://docs.oracle.com/cd/E14571_01/doc.1111/e16819/toc.htm
    Thanks
    Srinath

  • How to show the contents of one dropdown in another dropdown

    hi all
    i have 2 dropdownlists
    i created a dropdownkey ui and inserted values into dropdown dynamically.  let us say i have months in the dropdown , and when i select a month name in the first dropdown i want to display the festival names of that particular month in the second dropdownlist.
    please guide me
    Thanks and Regards
    narayna Adhurthi.

    Hi Narayan,
    You can achieve this functionality by following Bhavik's suggestion. If you do not want to create the second drop down's data dynamically, I can give you a suggestion.
    Create simple types for each month's festival list. Create twelve attributes each's type being one of the created festival type. Let's call these attributes attr1,attr2....attr12. On selecting a value from the first dropdown, change the binding of the 'selectedKey' of the second dropdown to a corresponding attribute.
    For this in the doModify(), write the following lines of code :
    String selected_key_for_drop1 = wdContext....get<attribute bound to the first drop down>;
    IWDViewElement elmt = view.getElement("<your second dropdown's ID>");
    IWDDropDownByKey drop = (IWDDropDownByKey)elmt; 
    if(selected_key_for_drop1.equals("Jan"))
       drop.bindSelectedKey("attr1");
    else if(selected_key_for_drop1.equals("Feb"))
       drop.bindSelectedKey("attr2");
    Hope this helps,
    Best Regards,
    Nibu.

  • Show  flash in a java panel

    How can show a flash in Java Panel ?
    mail: [email protected]

    You could see if a flash Java type componet exists, with the Magic Of Google.
    Or you could embed the default Web Browser with JDIC.
    no emails, tis a forum

Maybe you are looking for

  • Creating less scenes

    I believe I need to merge clips so that when I import to iDVD I can create a movie with less scenes. The problem is each clip, approx. 55 - 60 will import as 1 scene in iDVD. The problem 4 clips might be the same thing. So for example My daughter is

  • Help! ipod can't import movies/video...

    hope u guys can helpme out. Just bought ipod recently but having problems importing music videos/ movies from itunes. Called apple but they said that the movies is not the right format as my ipod. How do i reformat or import movies into my ipod? pls

  • How would i create this

    Hello I am required to make a program with a loop which records new records broken at a carnival. Someone will input the new record and holder and when the loop is ended it will display all the records, like a printout. I'm fairly new to java, is the

  • Adobe captivate 8 silent install

    How do I create a silent network install for Adobe captivate 8?

  • Photoshop Elements12 kann nach Neuinstallation nicht gestartet werden

    Photoshop Elements 12 konnte aufgrund einer Fehlermeldung: "Photoshop Elements cannot start or continue because of missing file(s). Please reinstall.", nicht gestartet werden. Nach einer Neuinstallation kam es zu folgender Fehlermeldung: "Photoshop 1