File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Forwarding resultset from servlet to applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Forwarding resultset from servlet to applet" Watch "Forwarding resultset from servlet to applet" New topic

Forwarding resultset from servlet to applet

Richard Teston
Ranch Hand

Joined: Feb 12, 2002
Posts: 89
I have this conceptual applet that represent some info in CDR (call detail record)in a graphical chart. How can i forward the resultset from the servlet to the applet and invoke methods of servlet from the applet.
Thanks in advance.

The Code is the Programmer
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1121

Hi Richard,
I assume by "resultset" you mean the "java.sql.ResultSet" interface. If that assumption is true, then, as far as I know, objects transferred from a servlet to an applet must be serializable (i.e. implement the "" interface), and a "ResultSet" is not serializable. Therefore, you cannot forward a "ResultSet" from a servlet to an applet.
Although I have not used it, and in case you are unaware, you may like to investigate the "CachedRowSet". More information available here:
Hope it helps.
Good Luck,
Don't get me started about those stupid light bulbs.
subject: Forwarding resultset from servlet to applet
Similar Threads
passing ResultSet from servlet to applet
Passing ResultSet from applet to Servlet and back...
Moving the Cursor in ResultSets.....
applet-servlet communication
Wrapping ResultSet