Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript => JSP

 
Joey Alencar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to know if there's a way to get the value of a javascript variable and set this value to a JSP variable.
Thanks.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keep in mind that Javascript executes on the browser while JSP works on the server. Therefore any information transfer from Javascript to JSP will have to be as part of a browser request - either a GET or a POST.
You could have Javascript set a hidden variable in a <FORM> for instance.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic