You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Søren Blidorf <so...@nolas.dk> on 2004/01/15 11:16:27 UTC

All values null after Validate

Hi.
I am using struts and I am doing a form validate.

When the user types in more than on thing and one of them fails
validation, all the values is returned blank.

Is there anyway to keep the values when validate error?

BR

Soren


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


AW: All values null after Validate

Posted by Oliver Thiel <th...@gmx.de>.
Hi Søren,


IF you use [extends ActionForm] you can use:

<input type=text name="username" value="<bean:write name="basicForm"
property="username" />"> (in your jsp)

OR:

IF you use [extends ValidatorForm] you can use:

<html:text property="username"/> (in your jsp)
 

Hope that helps
Oliver

-----Ursprüngliche Nachricht-----
Von: Søren Blidorf [mailto:soren@nolas.dk] 
Gesendet: Donnerstag, 15. Januar 2004 11:16
An: struts-user@jakarta.apache.org
Betreff: All values null after Validate

Hi.
I am using struts and I am doing a form validate.

When the user types in more than on thing and one of them fails
validation, all the values is returned blank.

Is there anyway to keep the values when validate error?

BR

Soren


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


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