Solved

New to JSP - question regarding Session object

Posted on 2004-05-02
1
216 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now