wood burning stoves 2.0*
The moose likes JSP and the fly likes JSP with JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP with JavaScript" Watch "JSP with JavaScript" New topic
Author

JSP with JavaScript

Uttama Shakya
Greenhorn

Joined: Jan 22, 2002
Posts: 3
Is there any way we can use JavaScript variables in java code in a JSP page?
mark dathorne
Greenhorn

Joined: Nov 09, 2001
Posts: 1
No.
The java code is executed at the server side before the page is presented.
The javascript is used client-side, after the page has been loaded.
(Javascript, I believe, can be used server side but I don't know much about that.)
MarkieD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSP with JavaScript