You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Mannem, Taati" <Ta...@AIG.com> on 2002/05/10 22:33:24 UTC
Reg the Action Errors and Action class
Guys!
I know its friday but can not stop myself from asking a question or a doubt!
Errors as you know can be many types but broadly classified as Front End
Validation Errors and BackEnD validation errors..
Now the front end validation(the form validation) is being handled by the
form validate and I am handling the errors which the backend is sending me
by instantiating the Actionerrors in the action class and forwarding it to
the appropriate page.Is my approach correct and if yes what are the things
that I should take care off?
If my approach is wrong where am I goofing up?
TIA
Regards,
Taati
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Reg the Action Errors and Action class
Posted by Ted Husted <hu...@apache.org>.
Yes, the best practice would be to use ActionErrors from within your
Action, just as the ActionForm does.
-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services
"Mannem, Taati" wrote:
>
> Guys!
> I know its friday but can not stop myself from asking a question or a doubt!
>
> Errors as you know can be many types but broadly classified as Front End
> Validation Errors and BackEnD validation errors..
> Now the front end validation(the form validation) is being handled by the
> form validate and I am handling the errors which the backend is sending me
> by instantiating the Actionerrors in the action class and forwarding it to
> the appropriate page.Is my approach correct and if yes what are the things
> that I should take care off?
> If my approach is wrong where am I goofing up?
>
> TIA
> Regards,
> Taati
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>