Joe,
You be da man!
Thanks.
Frank
- Original Message -
From: "Joe Germuska" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 1:56 PM
Subject: Re: Help with using declarative error handling
> At 1:58
At 1:58 AM +0100 5/18/04, Frank Burns wrote:
This seems simple enough. So why doesn't it work?
Because the default ExceptionHandler class saves its own error
messages into the request under the same key that Action.saveErrors()
uses, overwriting the reference to the errors that you saved.
http:/
essage -
From: "Bill Schneider" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 17, 2004 1:18 PM
Subject: Re: Help with using declarative error handling
> Hi,
>
> try changing the exception handler in struts-config.x
<[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 12:01 AM
Subject: RE: Help with using declarative error handling
> From: Frank Burns [mailto:[EMAIL PROTECTED]
> However, the problem I am trying to solve is that my
> AuthenticateAction
> class can throw the TRCDatabaseException in
> From: Frank Burns [mailto:[EMAIL PROTECTED]
> However, the problem I am trying to solve is that my
> AuthenticateAction
> class can throw the TRCDatabaseException in SEVERAL places.
>
> I want to be able to display a DIFFERENT error message for
> each place in the
> code where the exception c
t;[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 17, 2004 1:18 PM
Subject: Re: Help with using declarative error handling
> Hi,
>
> try changing the exception handler in struts-config.xml to
>
> key="errors.database.noconnection"
&g
Hi,
try changing the exception handler in struts-config.xml to
You can get rid of the whole catch block in your action--the
ActionServlet takes care of it. That's the beauty of declarative
exceptions.
-- Bill
>> Wherever an exception is thrown in AuthenticateAction, I add some
code in
>> the ca
Hi,
I can't get the relevant error message from the resources file to display
when an exception is thrown.
Can you please help? Here is the scenario:
One of my Action classes, AuthenticateAction, can generate the same type of
application-specific exception (TrcDatabaseException) at various point
8 matches
Mail list logo