Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Assign javascript variable to a java variable

 
chris gar
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I assign the value of a javascript var to a java String.

I've seen posts on how to do the opposite but not the way I need.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't. The only way to get Javascript data back to the server is to submit it via a request.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic