You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Suresh Addagalla <su...@wipro.com> on 2002/12/19 06:51:18 UTC

Form Errors (Newbie)

Hi,
 
I would like to know whether the following is possible to implement with
Struts.
 
I display a form for creating, say, a Service. The user fills in a form.
When the form is submitted, the Validator performs the validations with
no errors. Now the control comes to the execute method. In this method,
I find that the Service Name is already present in DB. Now I need to
display the "input form" indicating along side the field that "this
Service already exists, give a different name".
 
Although it seems possible, the doubt I have is as follows. The input
form might have been generated based on a complex <logic:..>s performed
in the JSP. Now when Action encounters an error, will it be able to
display the input form in "exactly the same" state? Which means that if
the input form contains a lot of fields with specific values, do I see
the same values when it is displayed again with some errors?
 
Thanks for your time.
 
Suresh