You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Muralidhar Yaragalla <ja...@gmail.com> on 2013/03/21 20:16:34 UTC

when to use Action Errors and ActionMessages

Hi when should we add an action error or action message. I understood field
error. It as to be added in validate method when there is any field error
in the form( I mean validation error) but when to use other?

-- 
Thanks And Regards,
*Muralidhar Yaragalla.
*

Re: when to use Action Errors and ActionMessages

Posted by Muralidhar Yaragalla <ja...@gmail.com>.
Thank you so much.


On Fri, Mar 22, 2013 at 1:47 AM, Chris Pratt <th...@gmail.com>wrote:

> If it has action messages, everything proceeds as usual.  If it has action
> errors, the validation system exits with the return code "input".
>   (*Chris*)
>
>
> On Thu, Mar 21, 2013 at 1:06 PM, Muralidhar Yaragalla <
> java.yaragalla@gmail.com> wrote:
>
> > So even if it has action errors or action messages the execute method of
> > action class will not be called is it?
> >
> >
> > On Fri, Mar 22, 2013 at 12:50 AM, Chris Pratt <thechrispratt@gmail.com
> > >wrote:
> >
> > > Same time, during validation.  They are just non-field specific.  So If
> > you
> > > have an error (or informational message) to deliver to the user you
> would
> > > use these methods.
> > >   (*Chris*)
> > >
> > >
> > > On Thu, Mar 21, 2013 at 12:16 PM, Muralidhar Yaragalla <
> > > java.yaragalla@gmail.com> wrote:
> > >
> > > > Hi when should we add an action error or action message. I understood
> > > field
> > > > error. It as to be added in validate method when there is any field
> > error
> > > > in the form( I mean validation error) but when to use other?
> > > >
> > > > --
> > > > Thanks And Regards,
> > > > *Muralidhar Yaragalla.
> > > > *
> > > >
> > >
> >
> >
> >
> > --
> > Thanks And Regards,
> > *Muralidhar Yaragalla.
> > *
> >
>



-- 
Thanks And Regards,
*Muralidhar Yaragalla.
*

Re: when to use Action Errors and ActionMessages

Posted by Chris Pratt <th...@gmail.com>.
If it has action messages, everything proceeds as usual.  If it has action
errors, the validation system exits with the return code "input".
  (*Chris*)


On Thu, Mar 21, 2013 at 1:06 PM, Muralidhar Yaragalla <
java.yaragalla@gmail.com> wrote:

> So even if it has action errors or action messages the execute method of
> action class will not be called is it?
>
>
> On Fri, Mar 22, 2013 at 12:50 AM, Chris Pratt <thechrispratt@gmail.com
> >wrote:
>
> > Same time, during validation.  They are just non-field specific.  So If
> you
> > have an error (or informational message) to deliver to the user you would
> > use these methods.
> >   (*Chris*)
> >
> >
> > On Thu, Mar 21, 2013 at 12:16 PM, Muralidhar Yaragalla <
> > java.yaragalla@gmail.com> wrote:
> >
> > > Hi when should we add an action error or action message. I understood
> > field
> > > error. It as to be added in validate method when there is any field
> error
> > > in the form( I mean validation error) but when to use other?
> > >
> > > --
> > > Thanks And Regards,
> > > *Muralidhar Yaragalla.
> > > *
> > >
> >
>
>
>
> --
> Thanks And Regards,
> *Muralidhar Yaragalla.
> *
>

Re: when to use Action Errors and ActionMessages

Posted by Muralidhar Yaragalla <ja...@gmail.com>.
So even if it has action errors or action messages the execute method of
action class will not be called is it?


On Fri, Mar 22, 2013 at 12:50 AM, Chris Pratt <th...@gmail.com>wrote:

> Same time, during validation.  They are just non-field specific.  So If you
> have an error (or informational message) to deliver to the user you would
> use these methods.
>   (*Chris*)
>
>
> On Thu, Mar 21, 2013 at 12:16 PM, Muralidhar Yaragalla <
> java.yaragalla@gmail.com> wrote:
>
> > Hi when should we add an action error or action message. I understood
> field
> > error. It as to be added in validate method when there is any field error
> > in the form( I mean validation error) but when to use other?
> >
> > --
> > Thanks And Regards,
> > *Muralidhar Yaragalla.
> > *
> >
>



-- 
Thanks And Regards,
*Muralidhar Yaragalla.
*

Re: when to use Action Errors and ActionMessages

Posted by Chris Pratt <th...@gmail.com>.
Same time, during validation.  They are just non-field specific.  So If you
have an error (or informational message) to deliver to the user you would
use these methods.
  (*Chris*)


On Thu, Mar 21, 2013 at 12:16 PM, Muralidhar Yaragalla <
java.yaragalla@gmail.com> wrote:

> Hi when should we add an action error or action message. I understood field
> error. It as to be added in validate method when there is any field error
> in the form( I mean validation error) but when to use other?
>
> --
> Thanks And Regards,
> *Muralidhar Yaragalla.
> *
>