struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avinash Gangadharan <agangadha...@ucdavis.edu>
Subject RE: Validating multiple DTO's within a single ActionForm.
Date Thu, 03 Jun 2004 22:27:18 GMT
>>Now there are general validation needed at submit time for each Form

Does this means that you save the data onto a persistent storage on each
form submit.
If that is the case, on a validation error of the final credit application
all you have to figure out is which form does the error belong too and then
you can populate the form bean and forward the action to that form. 
You may avoid putting all your forms in session this way as you already have
the data stored somewhere.

If this is something like a multipage form then the issue is different and
you have to handle it the way multi page forms are handled. You can get more
details if you search the mailing list or from some docs.


Avinash



-----Original Message-----
From: Mick.Knutson@wellsfargo.com [mailto:Mick.Knutson@wellsfargo.com] 
Sent: Thursday, June 03, 2004 2:50 PM
To: user@struts.apache.org
Subject: Validating multiple DTO's within a single ActionForm.
Importance: High


I am trying to design my forms and the way I need to validate them.

Here is what my Business Model Looks like:

CreditApplication
-->Business
  |---->Business Account
--->Banker
--->Guarantor

Each of the Items above has their own HTML page and DynaValidationForm.

Now there are general validation needed at submit time for each Form, but
then there is additional validation needed when they try to save the
CreditApplication.

We were planning on saving all the DynaForms into Session Scope until a
"Save" is attempted. They validate the additional validation. How do we go
about doing this?


---
> Thanks...
> Mick Knutson
> 
> 525 Market Street, SF, CA  94103
> (415) 222-1020
> Mick.Knutson@WellsFargo.com
> MAC A0103-223
---



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

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


Mime
View raw message