struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geeta Ramani" <gram...@terralink.com>
Subject RE: Form not being repopulated
Date Thu, 13 May 2004 20:17:22 GMT
Nestor:

Add an "input" attribute in, something like this:

<action path="/login" 
type="com.tcs.reclamos.struts.action.LoginAction"
input="/login/login.jsp"
name="loginForm" scope="request">

this way when validation fails control will go back to login/login.jsp
Geeta


> My struts-config looks like this:
>  
>     <action path="/login" 
> type="com.tcs.reclamos.struts.action.LoginAction"
> name="loginForm" scope="request">
>       <forward name="success" path="principalForward.do" 
> redirect="true"/>
>       <forward name="failure"     path="Login"/>
>     </action>
>  
> Every time a failure occurs because a validation problem the 
> form is not
> repopulated. What else should I check?

>  
> Thanks in advance
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 

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


Mime
View raw message