Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

about http session  RSS feed

 
karthik ekantha
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




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
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
karthik ekantha
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator






1)how to reset the values in the text?
2)how to clear the session ?
 
Koen Aerts
Ranch Hand
Posts: 344
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!