You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rodney Paul <ro...@natdata.net> on 2003/07/30 10:38:34 UTC

Problem with redisplay of form values when issuing error messages

Hi All,
 
I am currently using the Struts MVC2 framework to develop a wizard application.
Upon reading the literature in regards to how Struts works, I noticed that my application
will does not re-display form values entered by the user if errors are issued.
 
Is it possible to re-display form values from an ActionForm if the validate method returns
ActionErrors. If so, how do you achieve this? Do you need to store anything in a session object?
 
Is it possible to re-display form values from an Action class if we return ActionErrors.
 
 
Cheers
Rodney

RE: Problem with redisplay of form values when issuing error messages

Posted by Navjot Singh <na...@net4india.net>.
it WILL redisplay the form with filled values.
say, you submit a filled form, some data was wrong, 
the same form will be displayed WITH filled-in values.

navjot

|-----Original Message-----
|From: Rodney Paul [mailto:rodney.paul@natdata.net]
|Sent: Wednesday, July 30, 2003 2:09 PM
|To: Struts Users Mailing List (E-mail)
|Subject: Problem with redisplay of form values when issuing error
|messages
|
|
|Hi All,
| 
|I am currently using the Struts MVC2 framework to develop a wizard 
|application.
|Upon reading the literature in regards to how Struts works, I 
|noticed that my application
|will does not re-display form values entered by the user if errors 
|are issued.
| 
|Is it possible to re-display form values from an ActionForm if the 
|validate method returns
|ActionErrors. If so, how do you achieve this? Do you need to store 
|anything in a session object?
| 
|Is it possible to re-display form values from an Action class if 
|we return ActionErrors.
| 
| 
|Cheers
|Rodney
|

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