• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forwarding resultset from servlet to applet

 
Richard Teston
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic