aspose file tools
The moose likes JSP and the fly likes Using script variables in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Using script variables in JSP" Watch "Using script variables in JSP" New topic
Author

Using script variables in JSP

vivek ja
Ranch Hand

Joined: Feb 24, 2005
Posts: 80
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

Joined: Jan 10, 2002
Posts: 56185
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

vivek,

Maybe if you can describe what it is you're trying to do, someone could recommend an approach that would help you.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Using script variables in JSP
 
Similar Threads
tag file doubt
session problem in tomcat 5.0.30
Passing the data between the site through URL
how to use jsp expression language?
including jsp in servlet