Solved

New to JSP - question regarding Session object

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

706 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

22 Experts available now in Live!

Get 1:1 Help Now