What should we do to return a ResultSet to the client HTML through JSP?

Hi friends,
Greetings.
How do we pass the query Results from one function to another function?
Actually i have a database in the server and i am the client.
Client sends the id to the server as an argument. From HTML file this goes to the JSP file(which i am using as a link between HTML and EJB) and then this goes to the RemoteInterface and then to the Bean itself. The functions are written in the bean. Bean connects to the database using jdbc:odbc driver and then a query is written and executed as follows:
In the Stateless Session Bean, there is one function with the following query.
public ResultSet check(String id)
//other code
ResultSet rs = Statement.("select * from table1 where id=123");
if(!rs.next)
  // print no such id exists. other ids are
  rs=Statement.("select * from table1");
return rs;
}I have written it approximately only because the problem is not with the query :(
Now, in rs there's a resultset. Now how do i display it in a tabular format in HTML? This should obviously be done using JSP. How can we do it?
In JSP file if i write
ResultSet rs1=Remote.check(12);
i get NullPointerException
Thank you in anticipation to your reply!
Regards

Crossposted over all places:
[http://forums.sun.com/thread.jspa?threadID=5336533]
[http://forums.sun.com/thread.jspa?threadID=5336534]
[http://forums.sun.com/thread.jspa?threadID=5336532]
[http://forums.sun.com/thread.jspa?threadID=5336519]
[http://forums.sun.com/thread.jspa?threadID=5336510]
Stop crossposting. It's very rude.

Similar Messages

Maybe you are looking for

  • How do i force safari 7 to always download all PDFs

    Whenever i click a pdf, i want it to merely download to my downloads directory.  until mavericks this was a matter of simply setting a boolean operator, but now that operator does not work and the code in the pdf file displays on the screen instead o

  • Asking the mod to lock this thread.

    I don't know where to turn to. I don't think it belongs to fissue at microsoft dot com, and I can't use the Abuse button as no one is in violation of COC. So, I am posting my " lock this thread " request here. The thread in question has gone through

  • Migrating NWDI server to another

    Hi experts, Here is my objective: I have a SLD, DTR, CBS and CMS in one NWDI server. I need to migrate all of this to another NWDI server. My original server is a NWDI 7.1 windows, my target is a NWDI 7.4 Linux. Mt problem: All the sources, activitie

  • How do I retieve photos

    How do I retrieve photos off Adobe Photoshop Album Starter Edition to include in my new Adobe Photoshop Elements 11 album?? The trial period has long run out an the product is no longer available to purchase? thanks

  • How do in import google and yahoo contact to mail?

    how do in import google and yahoo contact to mail?