• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing data from Applet to the Apache server

 
Anusha Jv
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have an application that runs in the JApplet.I have to pass data b/w server and applet.The datas are brought from the server using php to the browser and passed to applet using param tags.
1.Is it possible to set value for the param tag from applet?
2.How to retrieve data from the param tag to the applet in the form of an array.
In the getParameter it is required to specify the param name.
Is it possible to retrieve data from param tag similar to that of getting data from command line arguments array.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anusha,
1. No. Since applet init() method is the only one that can make use of getParameter it can only be used once.
2. Sorry. getParameter only supports String type. If you want to pass arrays/vectors you need to put all in a string (i.e., comma delimited items) and parse them after the getParameter method is called.
Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic