Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to pass variable from a jsp page to Applet  RSS feed

 
vikram sisodia
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any body teel me How to pass variable from a jsp page to Applet

I have a jsp page which have some drop-down, i am getting some id's from them
and in the same page i am calling a applet.....

i want to pass the value's of these id's to applet
how can i do this ?
 
Ola Daniel
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can pass parameters to your applet when you are loading it initially
using the <param> tag, for example look at the following code:



And to get the parameters passed from the JSP, use the Applets getParameter method.

For Example:

[ July 27, 2006: Message edited by: Ola Daniel ]
 
vikram sisodia
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Daniel,
This is the right solution
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!