It isn't clear what you are trying to achieve;  however one thing that jumps out is 
your use of request *attributes* as opposed to request *parameters*.  When you append 
a URI thusly:

  foo?operation=bar&baz=gak

you are providing *parameters* and not attributes.

Sri

-----Original Message-----
From: Denis Wang [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 20, 2003 3:19 PM
To: Struts Users Mailing List
Subject: reset a request parameter to null


Hello, all,
What is the easiest way to set the request paramter to null?
I have OneForm and TwoForm, both of which have a field of "operation". After OneAction 
is finished, the request will be forwarded to TwoAction. The wierd thing is that I 
cannot reset the "operation" parameter. I tried in the OneAction:
        request.setAttribute( "operation", null );
        OneForm.setOperation( null );
        request.removeAttribute( "operation" );

        return new ActionForward( mapping.findForward( "success" ).getPath()
+ "?operation=&versionId=" + versionId );

All above approaches do not work.  The last one comes really close to set 
operation="".  Does anybody have a decent way to set the parameter to null? Thanks. 
Denis



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to