View Single Post
  #1 (permalink)  
Old 07-30-2007, 07:29 PM
osval osval is offline
Member
 
Join Date: Jul 2007
Posts: 26
osval is on a distinguished road
problems with assigning a value to object session
I'm trying to assign a value to the object session :

Code:
<@ page session="true"> String var_name = "name"; String var_value = "value"; session.putValue(var_name,var_value);
Then I'm submitting to the same page and trying to read from the session :
Code:
String get_val = (String)session.getValue("name");

It always gives me "null".
I'm trying to get session object like that:
Code:
"HttpSession session = request.getSession(true)"
But every time I'm calling session.isNew() it returns me "true".
Do you know what's the problem?
thanks
Reply With Quote
Sponsored Links