Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

request.getParameter

Status
Not open for further replies.

dennisGuru

Programmer
Sep 14, 2001
37
NL
Hello,

I have a jsp page with several buttons.
<INPUT TYPE=&quot;submit&quot; NAME=&quot;button_A&quot; VALUE=&quot;Goto A&quot;>. I use these buttons to go to another page, depending on wich button is used.

In the servlet I retreive these with req.getParameter(&quot;button_A&quot;).

Once a button is clicked the value stays in the request/session. Is there a way to remove this. I have tried it with session.removeAttribute, but this doesn't work. Also setting the variables to null did not help.

Thanks in advance.

Dennis
 
Well, you can remove an object from the HttpServletRequest by calling HttpServletRequest.removeAttribute() - but I cannot see the problem as HttpServletRequest parameters are not HttpSession objects, and only persist as long as the request is being handled ...
 
I have looked for this method, but could not found it. I have looked in the wrong place. Thanks alot. It worked.
Dennis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top