Re: Help with using declarative error handling

2004-05-18 Thread Frank Burns
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

Re: Help with using declarative error handling

2004-05-18 Thread Joe Germuska
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:/

RE: Help with using declarative error handling

2004-05-17 Thread Patrick Cheng
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

Re: Help with using declarative error handling

2004-05-17 Thread Frank Burns
<[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

RE: Help with using declarative error handling

2004-05-17 Thread Wendy Smoak
> 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

Re: Help with using declarative error handling

2004-05-17 Thread Frank Burns
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

Re: Help with using declarative error handling

2004-05-17 Thread Bill Schneider
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

Help with using declarative error handling

2004-05-16 Thread Frank Burns
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