wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Assign javascript variable to a java variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Assign javascript variable to a java variable" Watch "Assign javascript variable to a java variable" New topic
Author

Assign javascript variable to a java variable

chris gar
Ranch Hand

Joined: Jul 20, 2002
Posts: 45
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

You don't. The only way to get Javascript data back to the server is to submit it via a request.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Assign javascript variable to a java variable
 
Similar Threads
get string values from Request and Session
Passing the JSTL variable (with special characters) to JavaScript function?
How to assign a javascript variable to java varisble?
Retrive Web Page via Javascript
Head First Servlets & JSP book - JSP Question