aspose file tools
The moose likes JSP and the fly likes assign return value of function from javascript to variable in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "assign return value of function from javascript to variable in jsp" Watch "assign return value of function from javascript to variable in jsp" New topic
Author

assign return value of function from javascript to variable in jsp

prajyot jadhav
Greenhorn

Joined: Dec 26, 2011
Posts: 6
how to assign return value of function from javascript to variable in jsp..?
or directly to the java class variable in struts..?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56224
    
  13

Cannot be done.

Please read this article to understand how JSP works and why that's simply impossible.

You'll need to submit the value as a request to the server.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: assign return value of function from javascript to variable in jsp
 
Similar Threads
how to store a js value in a java or jsp variable
check File Existence and display alert message
Jsp & Javascript
how can assign hidden variable value to JSTL variable,with out submit
Drop Downs