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
<[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to