Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Formbean information lost

Thomas Thomas

2006-12-10

Replies:

Hi,

If I fill my form with, for example, "xyz" as login,
and if there is an error,
"xyz" will stay in the textfield,
(for some reason, as additional question if u can say me why that happen,
would be great)

That's perfect, BUT

I don't have this behaviour with my <html:select> tags for the day and
month of his birth date.

For example if user enters day 31 and month February (which is invalid) and
submits,
there will appear 1 January and an error text under it:
date invalid (that can lead to confusion since 1 January is valid) => the
day 31 and month February is lost,
so I have not the same behavior than with my login => if there is error ,
the login he entered is displayed again.
I hope I was clear.

How can I fix this ? Thank u.
©2008 junlu.com - Jax Systems, LLC, U.S.A.