wood burning stoves 2.0*
The moose likes JSP and the fly likes passing a javascript variable value to a JSP variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "passing a javascript variable value to a JSP variable" Watch "passing a javascript variable value to a JSP variable" New topic
Author

passing a javascript variable value to a JSP variable

shivang sarawagi
Ranch Hand

Joined: Jun 19, 2008
Posts: 147
Is there any way of copying a javascript variable value into a JSP variable ???
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

Of course not. The JSP executes on the server long before the Page is sent to the browser where the JavaScript executes.

Please read this article to understand what JSP is all about.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jhon masco
Ranch Hand

Joined: May 13, 2010
Posts: 93
shivang sarawagi wrote:Is there any way of copying a javascript variable value into a JSP variable ???


Can you explain a little What do you want to do??
May be there is other way for solve you problem.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: passing a javascript variable value to a JSP variable
 
Similar Threads
Javascript variable inside jsp scriplet
Javascript => JSP
assign return value of function from javascript to variable in jsp
how can i put java script value into jsp variable?
Can Javascript variable store into JSP variable