You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by fea jabi <zy...@hotmail.com> on 2006/02/06 21:39:55 UTC

saveErrors --- ActionErrors to ActionMessages

I am having the below code now in my dispatch Action in one of the methods 
in it.


DynaValidatorForm frm = (DynaValidatorForm)form;

ActionErrors errors = frm.validate( mapping, request );
        if ( errors != null && !errors.isEmpty() ) {
            saveErrors(request, errors);
.................
.................

As the below is deprecated
saveErrors(javax.servlet.http.HttpServletRequest request, ActionErrors 
errors)

How to convert the above to use ActionMessages instead?

Thanks.

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


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


Re: saveErrors --- ActionErrors to ActionMessages

Posted by gr...@intellicare.com.
"fea jabi" <zy...@hotmail.com> wrote on 02/06/2006 03:54:43 PM:

> I am sorry but none of the links in it are working.
> 
> Where else can I get more info on the same?
> 
> Thanks.


hmm.. this link *is* working for me..?
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html

Geeta

Re: saveErrors --- ActionErrors to ActionMessages

Posted by fea jabi <zy...@hotmail.com>.
I am sorry but none of the links in it are working.

Where else can I get more info on the same?

Thanks.


>From: gramani@intellicare.com
>Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>To: "Struts Users Mailing List" <us...@struts.apache.org>
>Subject: Re: saveErrors --- ActionErrors to ActionMessages
>Date: Mon, 6 Feb 2006 15:44:08 -0500
>
>"fea jabi" <zy...@hotmail.com> wrote on 02/06/2006 03:39:55 PM:
>
> > I am having the below code now in my dispatch Action in one of the
>methods
> > in it.
> >
> >
> > DynaValidatorForm frm = (DynaValidatorForm)form;
> >
> > ActionErrors errors = frm.validate( mapping, request );
> >         if ( errors != null && !errors.isEmpty() ) {
> >             saveErrors(request, errors);
> > .................
> > .................
> >
> > As the below is deprecated
> > saveErrors(javax.servlet.http.HttpServletRequest request, ActionErrors
> > errors)
> >
> > How to convert the above to use ActionMessages instead?
> >
> > Thanks.
>
>http://wiki.apache.org/struts/ActionErrorsAndActionMessages
>
>Regards,
>Geeta

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


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


Re: saveErrors --- ActionErrors to ActionMessages

Posted by gr...@intellicare.com.
"fea jabi" <zy...@hotmail.com> wrote on 02/06/2006 03:39:55 PM:

> I am having the below code now in my dispatch Action in one of the 
methods 
> in it.
> 
> 
> DynaValidatorForm frm = (DynaValidatorForm)form;
> 
> ActionErrors errors = frm.validate( mapping, request );
>         if ( errors != null && !errors.isEmpty() ) {
>             saveErrors(request, errors);
> .................
> .................
> 
> As the below is deprecated
> saveErrors(javax.servlet.http.HttpServletRequest request, ActionErrors 
> errors)
> 
> How to convert the above to use ActionMessages instead?
> 
> Thanks.

http://wiki.apache.org/struts/ActionErrorsAndActionMessages

Regards,
Geeta