• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to pass JavaScript variable into JSP variable

 
Abhijit Das
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I like to pass a java script variable into a java variable in that JSP page .Please give a simple example.

Reverse of it is also possible or not? if yes, please give a example too.

thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not possible.

Javascript is interpreted on the client and is, itself, product of the interpretation of the JSP up on the server.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might benefit from reading this article.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!