| Author |
how can i use javascript variable in jsp
|
arulraj michaelraj
Greenhorn
Joined: Mar 02, 2005
Posts: 2
|
|
Hi all, I want search in hashtable which is in jsp but i have to implement this process using javascript variable like this fuction hello(funtionid) { namelist.get(functionid) } here functionid is javascript variable namelist is hashtable which is in jsp. please tell me suggestion
|
 |
David Ulicny
Ranch Hand
Joined: Aug 04, 2004
Posts: 724
|
|
|
This is impossible, you can't access JSP (server side) with Javascript (client side)
|
SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
|
 |
Frederic Filiatrault
Ranch Hand
Joined: Jul 12, 2004
Posts: 69
|
|
And to complete, only way would that you dynamically write the declaration of an array in the output as JavaScript code and then, would be able to use it. Painful but that`s life !
|
F.<br />SCJP, SCJD, SCWCD, SCBCD<br /> <br />Failure is not an option... It comes with the software bundle.
|
 |
 |
|
|
subject: how can i use javascript variable in jsp
|
|
|