struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Søren Blidorf <so...@nolas.dk>
Subject SV: All values null after Validate
Date Thu, 15 Jan 2004 14:06:56 GMT
Hi again.

I am doing it like this:

<bean:define name="element" id="myDate" property=" myDate" />

<INPUT NAME="myDate" TYPE="text" SIZE="30" value="<%=
getDateFormatted(myDate) %>">

Is it possible then?

Soren

-----Oprindelig meddelelse-----
Fra: Otto, Frank [mailto:otto@delta-barth.de] 
Sendt: 15. januar 2004 11:35
Til: 'Struts Users Mailing List'
Emne: AW: All values null after Validate

Hi Oliver,

You can use <html:text property="username"/> in [extends ActionForm]
too.


Regards,

Frank

-----Ursprüngliche Nachricht-----
Von: Oliver Thiel [mailto:thiel.oliver@gmx.de]
Gesendet: Donnerstag, 15. Januar 2004 11:21
An: 'Struts Users Mailing List'
Betreff: AW: All values null after Validate


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

---------------------------------------------------------------------
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



---------------------------------------------------------------------
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