This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes about http session Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "about http session" Watch "about http session" New topic
Author

about http session

karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78




value are assigned in text box and text area .i want reset the values when i am clicking reset button ??
1)the text box should be clear or session should be clear? .
the value are assigned the session.so
2) i want clear the session?any some condition for http session?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56216
    
  13

Sorry but I cannot make heads or tails about what you are asking. Please reply with a more clear description of what you are asking.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78






1)how to reset the values in the text?
2)how to clear the session ?
Koen Aerts
Ranch Hand

Joined: Feb 07, 2012
Posts: 344

karthik ekantha wrote:1)how to reset the values in the text?
2)how to clear the session ?

1) Use a reset button, which is an <input> tag with attribute "type" of "reset"
2) Depends on what your intend is. Either invalidate the session (session.invalidate()) or iterate over each object in the session and then call removeAttribute() for each object.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: about http session
 
Similar Threads
Getting error
How to position fieldset?
Doubts in jsp
how to assign variable in text area?
http 500 in jsp page