On the question of chaining actions you can search for "Action Chaining" and should 
find several threads in the archives.

Sri

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


>>I would suggest overriding OneForm's reset() method and set the 
>>property
'operation' to null in it.
Do you mean TwoForm's reset()?  If yes, your suggestion is a doable approach.  But my 
point is to have a decent way to set the parameter to null in OneAction /OneForm to 
avoid pollution to others instead of tranferring the burden to TwoForm/TwoAction, 
ThreeForm/ThreeAction ....

>>Let me say in passing that it isn't a good idea to chain actions.  
>>There
are other -- more robust -- means to achieve the >>same ends.  This is a discussion in 
itself that has been given quite a bit of attention on this list in the past and so I 
>>won't go into it at length. Would you please give me a hint of the subject for the 
past discussion?  I'd like to look into it. Thanks. Denis

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


thanks for your reply.  just as this email's subject, I am trying to set a request 
*parameter* to null. Denis

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


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]>




--
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]>



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