problems with assigning a value to object session
I'm trying to assign a value to the object session :
Then I'm submitting to the same page and trying to read from the session :
<@ page session="true">
String var_name = "name";
String var_value = "value";
String get_val = (String)session.getValue("name");
It always gives me "null".
I'm trying to get session object like that:
But every time I'm calling session.isNew() it returns me "true".
"HttpSession session = request.getSession(true)"
Do you know what's the problem?