• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Forwarding resultset from servlet to applet

Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Ranch Hand
Posts: 1143
Eclipse IDE Oracle Java
  • 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:
Hope it helps.
Good Luck,
rubbery bacon. crispy tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic