Discussions
Web tier: servlets, JSP, Web frameworks: Can Javascript used to manipulate JSP object such as session?
-
Can Javascript used to manipulate JSP object such as session? (2 messages)
- Posted by: Han Chee
- Posted on: December 03 2003 07:24 EST
If yes, how to do that?Threaded Messages (2)
- Can Javascript used to manipulate JSP object such as session? by David Rabinowitz on December 03 2003 09:26 EST
- Can Javascript used to manipulate JSP object such as session? by Paul Strack on December 03 2003 10:30 EST
-
Can Javascript used to manipulate JSP object such as session?[ Go to top ]
- Posted by: David Rabinowitz
- Posted on: December 03 2003 09:26 EST
- in response to Han Chee
JSP and it's objects are running on the server. JavaScript is running on the client (browser). -
Can Javascript used to manipulate JSP object such as session?[ Go to top ]
- Posted by: Paul Strack
- Posted on: December 03 2003 10:30 EST
- in response to David Rabinowitz
The only way Javascript can interact with the server is by submitting data to it.
One trick is to set up a hidden frameset in your page, with a "main frame" displaying your information and a "hidden frame" of 0 width. Your JavaScript can use the hidden frame to invoke various servlets, which can manipulate server data without changing the "main frame".