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?
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.