struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes Rood <wes9...@myfastmail.com>
Subject Re: actions best practice question
Date Fri, 18 Jul 2003 16:26:54 GMT

>Currently I used a ForgotPassword.do, and in the action I check if
>there's an 'action' parameter with the value of 'send'. If the 'action'
>parameter does not exist then I locally forward to the
>ForgotPassword.jsp using struts-config.xml local forwards configuration.
>If it does exist and equals to 'send' then I perform the actual
>operation of going to the EJB layer and do what is necessary to do.
>Is this the way to do it, or am I missing the point here?
>  
>
You may consider utilizing the "input" forward. 

You can set the "input" attribute of the Action element to be 
forgotpassword.jsp, then in the Action, when the "action" parameter does 
not exist, just do:

        return mapping.getInputForward();


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message