aspose file tools
The moose likes Applets and the fly likes Sending an ArrayList from servlet to Applet onload Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Sending an ArrayList from servlet to Applet onload" Watch "Sending an ArrayList from servlet to Applet onload" New topic
Author

Sending an ArrayList from servlet to Applet onload

Amos Matt
Greenhorn

Joined: Mar 30, 2007
Posts: 14
Hi All,

I need to open an applet pop up from a servlet. I need to load the applet with an array list data.
Could you please tell me how to send data while opening the applet.

Thank you,
Amos

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32768
If the data items to be sent are known at the time when the page containing the applet is generated, then you can use the <param> subtag of the <applet> tag. You could use parameter names like "item1", "item2" etc., and add an additional parameter called "numberOfItems" or some such.

This assumes that the web page is created dynamically using JSPs, but since you say that you're using servlets anyway, that shouldn't be a problem.


Android appsImageJ pluginsJava web charts
 
 
subject: Sending an ArrayList from servlet to Applet onload
 
Threads others viewed
Servlet to applet communication
JDBC and Applets
applet to servlet communication
How to compress String?
Updating multiple fields in applets
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture