wood burning stoves 2.0*
The moose likes JSP and the fly likes Javascript => JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Javascript => JSP" Watch "Javascript => JSP" New topic

Javascript => JSP

Joey Alencar
Ranch Hand

Joined: Jun 26, 2001
Posts: 43
I'd like to know if there's a way to get the value of a javascript variable and set this value to a JSP variable.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12675
Keep in mind that Javascript executes on the browser while JSP works on the server. Therefore any information transfer from Javascript to JSP will have to be as part of a browser request - either a GET or a POST.
You could have Javascript set a hidden variable in a <FORM> for instance.

Java Resources at www.wbrogden.com
I agree. Here's the link: http://aspose.com/file-tools
subject: Javascript => JSP
Similar Threads
How to pass JavaScript variable value to JSP variable
how can i put java script value into jsp variable?
Javascript variable inside jsp scriplet
assign return value of function from javascript to variable in jsp
Can Javascript variable store into JSP variable