struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Goodin <brandon.goo...@gmail.com>
Subject Re: Displaying exceptions from declarative exception handling
Date Wed, 29 Dec 2004 17:03:11 GMT
dang... that's a bummer. I guess it's something in my code. But, i
can't see it. The Exception is where it is supposed to be in the
request ActionErrors and when i place text next to my html:errors tag
it shows up. This is  weird. Anyone else have this issue with 1.2+?

Brandon


On Wed, 29 Dec 2004 03:29:42 -0800 (PST), Daniel H. F. e Silva
<dhfs@yahoo.com> wrote:
> Hey Brandon,
> 
>   That's a weird report. I never had problems doing so with Struts 1.1.
> What i do is:
>   1) In my exception jsp page, i use <html:errors/> tag.
>   2) Add an entry to the resource bundle (application.properties)
>   3) Add the declarative exception handling in my action mapping, like bellow:
>      <action path="/userRegistration"
>              type="com.foo.bar.UserRegistrationAction"
>              name="userRegistrationForm"
>              input="/userRegistration.jsp">
>         <exception type="java.sql.SQLException"
>                    key="userRegistration.sql.exception"
>                    path="/userRegistrationException.jsp" />
>         <forward name="success" path="/regSuccess.jsp" />
>         <forward name="failure" path="/regFailure.jsp" />
>      </action>
> 
>   Hope this can help you to figure out what is going on.
>   I didn't use struts 1.2 and later versions yet so i can't guarantee that works on them.
> 
> Cheers,
>  Daniel Silva.
> 
> --- Brandon Goodin <brandon.goodin@gmail.com> wrote:
> 
> > I am trying to display an exception caught by the Struts declarative
> > exception handling. I have tried to use the html:errors and
> > html;messages tags with no sucess. Does anyone have a sample they can
> > post on how to extract the exceptions that are being stored in the
> > ActionErrors?
> >
> > Brandon
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message