Solved

New to JSP - question regarding Session object

Posted on 2004-05-02
1
220 Views
Last Modified: 2010-04-01
Hi

i am new to JSP and i am designing a small website. The problem is that in one Session i am setting some attributes. I want to be able to allow the user to start from the beginning of the webpage (when he/she has reached the end). When the user goes on the first page how can i clear all the attributes in the previous session?.

And could someone please tell me where i can actually get the java documentation for the Session class? because so far im only aware of the setAttribute() and getAttribute() methods (from a tutorial online)

Note: I am only using the session object to transfer some objects from page transition to another.

thank you
0
Comment
Question by:Ravi Singh
1 Comment
 
LVL 27

Accepted Solution

by:
rrz earned 50 total points
ID: 10971560
Look at  
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession.html   
and  see  method
removeAttribute("name")
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Fisheye tool 2 122
Coldfusion 10 - JSP File Not Found - 404 Error 5 109
eclipse luna javeEE perspecive missing 5 118
jdbc error in jsp application 20 71
No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
Adults who share images on social media aren’t the only ones who need to worry about their privacy. Our culture’s tendency to share every move and celebration affects the privacy of our children, too.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question