• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending an ArrayList from servlet to Applet onload  RSS feed

 
Amos Matt
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!