Please explain to me how to use session object in a JSP page. For example I am trying to create a hash table and store it in a session object to access it in another page.
Thanks, Saad.
-
Using session object in a JSP page. (3 messages)
- Posted by: Saad Hamdan
- Posted on: August 29 2000 10:23 EDT
Threaded Messages (3)
- Using session object in a JSP page. by Ekta Agarwal on August 30 2000 01:48 EDT
- Using session object in a JSP page. by Saad Hamdan on August 31 2000 16:36 EDT
- Using session object in a JSP page. by Andrew Reynolds on August 31 2000 11:29 EDT
- Using session object in a JSP page. by Saad Hamdan on August 31 2000 16:36 EDT
-
Using session object in a JSP page.[ Go to top ]
- Posted by: Ekta Agarwal
- Posted on: August 30 2000 01:48 EDT
- in response to Saad Hamdan
There is an implicit session object associated with every JSP page .The object name is "session".U just need to say session.putValue("someName",urHashTableObject);
The above code will store the hashtable in the session.Then to access it on the next page,just say
session.getValue("someName");
I think this will solve ur problem. -
Using session object in a JSP page.[ Go to top ]
- Posted by: Saad Hamdan
- Posted on: August 31 2000 16:36 EDT
- in response to Ekta Agarwal
Thank you it worked.
Do I need to put the following in the page directive tag "session=true".
Saad.
-
Using session object in a JSP page.[ Go to top ]
- Posted by: Andrew Reynolds
- Posted on: August 31 2000 23:29 EDT
- in response to Saad Hamdan
No -the default is true
andrew