Okay, but the error page i'm getting is default error page not the custom
error page (more over i'm not using exceptionStack in my custom error page)

-- 
Thanks & Regards
Srikanth
Software Developer
--------------------------------
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
--------------------------------


On Fri, Jun 21, 2013 at 12:14 PM, Lukasz Lenart <lukaszlen...@apache.org>wrote:

> There is nothing like CatchAll in Struts 2, you define result per
> exception type
>
> <global-exception-mappings>
>     <exception-mapping
> exception="org.apache.struts.register.exceptions.SecurityBreachException"
> result="securityerror" />
>     <exception-mapping exception="java.lang.Exception" result="error" />
> </global-exception-mappings>
>
> so all other exceptions than SecurityBreachException will be directed
> to result "error" and error.jsp prints the stacktrace as well:
>
> <h4>Exception Details: <s:property value="exceptionStack" /></h4>
>
> so maybe remove that line and your are done.
>
>
> Regards
> --
> Łukasz
> mobile +48 606 323 122 http://www.lenart.org.pl/
>
> 2013/6/21 Sreekanth S. Nair <sreekanth.n...@egovernments.org>:
> > Hi Lukasz,
> >                 Thanks for your replay, i did the same way only, but
> there
> > are some exception still going uncaught and showing the stacktrace to
> view.
> > There was something called CatchAll, can you please tell me how to do it.
> >
> > --
> > Thanks & Regards
> > Srikanth
> > Software Developer
> > --------------------------------
> > eGovernments Foundations
> > www.egovernments.org
> > Mob : 9980078913
> > --------------------------------
> >
> >
> > On Fri, Jun 21, 2013 at 11:50 AM, Lukasz Lenart <lukaszlen...@apache.org
> >wrote:
> >
> >> 2013/6/21 Sreekanth S. Nair <sreekanth.n...@egovernments.org>:
> >> > Hi,
> >> >     Can anyone point me a tutorial or reference for how to handle
> >> exception
> >> > (uncaught or all exception). There are so many tutorial available
> online
> >> > but all are different.
> >>
> >> http://struts.apache.org/development/2.x/docs/exception-handling.html
> >>
> >>
> >> Regards
> >> --
> >> Łukasz
> >> + 48 606 323 122 http://www.lenart.org.pl/
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to