You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Thai Dang Vu <TV...@dhmh.state.md.us> on 2005/07/07 20:42:07 UTC
Which request is used in Validation when the requirements
aren't met?
Hello everybody,
This is my action declaration in struts-config.xml
<action path="/add_provider"
type="AddProviderAction"
name="addProviderForm"
input="/WEB-INF/provider/addprovider.jsp"
validate="true"
scope="request">
</action>
In addprovider.jsp page, when I click 'Submit' and the requirements aren't met, the request is forwarded to the input (which is /WEB-INF/provider/addprovider.jsp). How and where can I get the request before the input page appears (so that I can put something in the request to make the input displays correctly)?
Thanks.
Re: Which request is used in Validation when the requirements aren't met?
Posted by Jeff Beal <jb...@gmail.com>.
If your input attribute identifies an Action instead of a JSP page,
you can do whatever you need to do within that Action.
On 7/7/05, Thai Dang Vu <TV...@dhmh.state.md.us> wrote:
> Hello everybody,
>
> This is my action declaration in struts-config.xml
>
> <action path="/add_provider"
> type="AddProviderAction"
> name="addProviderForm"
> input="/WEB-INF/provider/addprovider.jsp"
> validate="true"
> scope="request">
> </action>
>
> In addprovider.jsp page, when I click 'Submit' and the requirements aren't met, the request is forwarded to the input (which is /WEB-INF/provider/addprovider.jsp). How and where can I get the request before the input page appears (so that I can put something in the request to make the input displays correctly)?
>
> Thanks.
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org