Results 1 to 2 of 2
- 07-30-2007, 05:29 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 26
- Rep Power
- 0
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 :Java Code:<@ page session="true"> String var_name = "name"; String var_value = "value"; session.putValue(var_name,var_value);
Java Code: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".Java Code:"HttpSession session = request.getSession(true)"
Do you know what's the problem?
thanks
- 08-06-2007, 11:10 PM #2
Senior Member
- Join Date
- Jun 2007
- Posts
- 130
- Rep Power
- 0
Similar Threads
-
session object
By 5alive in forum New To JavaReplies: 1Last Post: 06-23-2008, 12:45 AM -
Problems passing a scan object to a method
By xkross in forum New To JavaReplies: 4Last Post: 04-16-2008, 03:56 PM -
problems with applet session between to two applets
By elizabeth in forum Java AppletsReplies: 1Last Post: 08-07-2007, 03:23 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks