You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Denis Wang <dw...@brandmuscle.com> on 2003/01/20 21:18:51 UTC
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>