This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » JSP
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: 63331
    
  70

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: assign return value of function from javascript to variable in jsp
 
It's not a secret anymore!