• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP with JavaScript

 
Uttama Shakya
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way we can use JavaScript variables in java code in a JSP page?
 
mark dathorne
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic