Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

New to JSP - question regarding Session object

Posted on 2004-05-02
1
Medium Priority
?
224 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 28

Accepted Solution

by:
rrz earned 200 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

886 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