A friendly place for programming greenhorns!
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
Author
Using script variables in JSP
vivek ja
Ranch Hand
Joined: Feb 24, 2005
Posts: 80
posted
May 19, 2005 09:59:00
0
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
I like...
posted
May 19, 2005 11:16:00
0
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
I like...
posted
May 19, 2005 17:02:00
0
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter