You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Fedor Smirnoff <fe...@yahoo.com> on 2003/06/25 16:21:41 UTC

RE: ActionForm DB validation

Hey,

I wanted to find out if its acceptable to access
database in the validation stage of SOMEActionForm.
Basically when a user enters email address to
subscribe, I need to check if it already exists in the
database, should I do it in SOMEAction or
SOMEActionForm?

Thank you
Fedor

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


RE: ActionForm DB validation

Posted by FrenzyGNX <xu...@yahoo.com.sg>.
I think that kind of validation is better to be done
in the business logic layer.

 --- Fedor Smirnoff <fe...@yahoo.com> wrote: >
Hey,
> 
> I wanted to find out if its acceptable to access
> database in the validation stage of SOMEActionForm.
> Basically when a user enters email address to
> subscribe, I need to check if it already exists in
> the
> database, should I do it in SOMEAction or
> SOMEActionForm?
> 
> Thank you
> Fedor
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>  

__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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