Re: Validations - 'format' vs 'business'

2003-12-23 Thread Guido García Bernardo
I really think that is a good aproach. At least one of the most simple and centralized. BUT ...from a pure struts point of view someone can think that your solution is mixing the model with the view. I think ActionForm should remains as part of the view, or just a 'box' between the view

RE: Validations - 'format' vs 'business'

2003-12-23 Thread shirishchandra.sakhare
Mailing List Subject: Re: Validations - 'format' vs 'business' I really think that is a good aproach. At least one of the most simple and centralized. BUT ...from a pure struts point of view someone can think that your solution is mixing the model with the view. I think ActionForm should remains

Re: Validations - 'format' vs 'business'

2003-12-23 Thread Vic Cekvenich
Guido García Bernardo wrote: I really think that is a good aproach. At least one of the most simple and centralized. Thanks, I take a lot of time to try to KISS. ...from a pure struts point of view someone can think that your solution is mixing the model with the view. I think ActionForm

[OT] Validations - 'format' vs 'business'

2003-12-22 Thread Guido García Bernardo
Hi, I have a design doubt... I must validate data coming from a form. This consist typically of: - 'format' validations (i.e. a field is not empty or it is numeric) that I do in the validate method of the ActionForm - 'business' validations that usually require a DB access I actually do 2

Re: Validations - 'format' vs 'business'

2003-12-22 Thread Vic Cekvenich
{repost} I just override validate() method on formbean and do all there, including super.validate() that reads validation.xml. In here I call DAO's to do business validation also, ex: what is the available credit for the client to place this order. Then in action I do this: errors =

Re: [OT] Validations - 'format' vs 'business'

2003-12-22 Thread Martin Gainty
, 2003 10:00 AM Subject: [OT] Validations - 'format' vs 'business' Hi, I have a design doubt... I must validate data coming from a form. This consist typically of: - 'format' validations (i.e. a field is not empty or it is numeric) that I do in the validate method of the ActionForm