This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

assign return value of function from javascript to variable in jsp  RSS feed

 
prajyot jadhav
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!