• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using script variables in JSP

 
vivek ja
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am setting a boolean variable using javascript.
Based on that variable, I want to instantiate a class in JSP.
Is it possible to do that?

Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not. Javascript executes on the client long after the JSP has been executed on the server and the resulting HTML page has been sent to the browser.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vivek,

Maybe if you can describe what it is you're trying to do, someone could recommend an approach that would help you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic