aspose file tools
The moose likes JSP and the fly likes how can i use javascript variable in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "how can i use javascript variable in jsp " Watch "how can i use javascript variable in jsp " New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can i use javascript variable in jsp
 
Similar Threads
Accessing javascript variable in jsp
hashmap and jdbc
Regarding HashTable in Javascript
send variable
how can i use javascript variable in jsp page