This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Session Data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Session Data" Watch "Session Data" New topic
Author

Session Data

Sahil Sharma
Ranch Hand

Joined: Aug 27, 2003
Posts: 152
Hi Guys,
In my jsp i need to set the data that i have in my javascript into session.I know how to get the session data inside a javascript, but don't know how to set it.
Is their any way to do this.
Thanx
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60748
    
  65

The data will need to be posted to server-side code.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sahil Sharma
Ranch Hand

Joined: Aug 27, 2003
Posts: 152
So no way thru javascript
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60748
    
  65

Javascript can only perform client-side activities.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Session Data
 
Similar Threads
session datas using JSTL in JS
how to configure XA datasource
ending the session of a form?
session timeout
scope issues?