File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Forwarding resultset from servlet to applet" Watch "Forwarding resultset from servlet to applet" New topic
Author

Forwarding resultset from servlet to applet

Richard Teston
Ranch Hand

Joined: Feb 12, 2002
Posts: 89
Hi,
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: 1132

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 "java.io.Serializable" 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:
http://developer.java.sun.com/developer/Books/JDBCTutorial/chapter5.html
Hope it helps.
Good Luck,
Avi.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forwarding resultset from servlet to applet