struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li <ampyx...@gmail.com>
Subject Re: Reg : Exception Handling
Date Fri, 01 Sep 2006 08:25:12 GMT
>>> return mapping,findforward("failure");

should it be : return mapping.findforward("failure"); (you use ',' here, it
should be '.')


On 9/1/06, Rokariya, Raman <Raman.Rokariya@fmr.com> wrote:
>
> Make sure that you have a mapping in Struts-Config.xml also, for the
> respective
> action-mapping with the forward="failure"
>
> /Raman Rokariya
>
> -----Original Message-----
> From: Antonio Petrelli [mailto:brenmcguire@tariffenet.it]
> Sent: Friday, September 01, 2006 1:11 PM
> To: Struts Users Mailing List
> Subject: Re: Reg : Exception Handling
>
>
> Karthikn ha scritto:
> > Hi,
> >
> >         I am new user. I am implementing exception handling in my
> > application.
> >         In my action class I have try, catch block.
> >         in the catch block
> >
> >         catch(Exception e)
> >
> >                   {
> >
> >                         return mapping,findforward("failure");
> >
> > }
> >
> > I defined the failure forward in my struts-config.xml.
> > But the problem is that forward is not getting executed.
> >         Can u please help on this.
> >
>
> Can you post your action mapping and your forward?
>
> P.S.. The next time do not leave so much blank lines or no one will read
>
> your email :-)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
When we invent time, we invent death.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message