RE: Declarative Exception Handling

2004-03-18 Thread Ashutosh Satyam
If any one can help me on the below mentioned issue. In my application I had used the programmatic approach and now I want to switch to this declarative way of handling exception. But I couldn't find the way of passing the replacement parameters. I hope this should be possible. How exactly this

Re: Declarative Exception Handling

2003-07-11 Thread David Graham
--- Qasim Khawaja <[EMAIL PROTECTED]> wrote: > I have defined an exception in the action mapping declaration but the > ide I am using (eclipse) is insisting that I throw an exception or > surround with a try catch. Am I missing something here? Your code is potentially throwing an exception that

Re: Declarative Exception Handling Options

2003-02-28 Thread David Graham
When your action calls the business layer validation it will catch the exception that is thrown then translate it into an ActionError for that form field. David From: "scarter" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Decla

RE: Declarative Exception Handling(solved)

2003-01-12 Thread Suresh Addagalla
Thanks David. It worked this way: Suresh >-Original Message- >From: David M. Karr [mailto:[EMAIL PROTECTED]] >Sent: Monday, January 13, 2003 12:15 AM >To: [EMAIL PROTECTED] >Subject: Re: Declarative Exception Handling > > >>>>>> "S

Re: Declarative Exception Handling

2003-01-12 Thread David M. Karr
> "Suresh" == Suresh Addagalla <[EMAIL PROTECTED]> writes: Suresh> Hi, Suresh> I still need some more help in this respect. If any of you have managed Suresh> to extract messages from exception objects using declarative exception Suresh> handling, please give me some inputs.

RE: Declarative Exception Handling

2003-01-12 Thread Suresh Addagalla
ge- >From: Manomohan K Kalathil [mailto:[EMAIL PROTECTED]] >Sent: Saturday, January 11, 2003 2:17 PM >To: Struts Users Mailing List >Subject: RE: Declarative Exception Handling > > >Hi Suresh, > The default exception handler within struts stores a reference to the exce

RE: Declarative Exception Handling

2003-01-11 Thread Manomohan K Kalathil
Hi Suresh, The default exception handler within struts stores a reference to the exception object within the request under the key Action.EXCEPTION_KEY. You should be able to get the object reference using Exception cause = (Exception) request.getAttribute(Action.EXCEPTION_KEY) within you

RE: Declarative Exception handling with Struts 1.1-b2

2002-10-07 Thread Taylor, Jason
02 10:37 AM To: Struts Users Mailing List Subject: RE: Declarative Exception handling with Struts 1.1-b2 Thanks Chuck. Regards, Harvinder -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 11:00 PM To: Struts Users Mailing List Subjec

RE: Declarative Exception handling with Struts 1.1-b2

2002-10-07 Thread Harvinder Singh
Thanks Chuck. Regards, Harvinder -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 11:00 PM To: Struts Users Mailing List Subject: RE: Declarative Exception handling with Struts 1.1-b2 Yea, you can't use the same exception clas

RE: Declarative Exception handling with Struts 1.1-b2

2002-10-07 Thread chuckcavaness
> > > > But how do I fetch corresponding error message in my "error.jsp" file. > Don't > > I need to hardcode the "key" in the "error.jsp" like below. If not, please > > point out how do I do it. > > > > -------------- > > <%@ page language="

RE: Declarative Exception handling with Struts 1.1-b2

2002-10-07 Thread Harvinder Singh
., message corresponding to "template.id.null" key. Please correct me if I am wrong. -Harvinder -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 10:06 PM To: Struts Users Mailing List Subject: RE: Declarative Exception handling with

RE: Declarative Exception handling with Struts 1.1-b2

2002-10-07 Thread chuckcavaness
quot; prefix="html" %> > > > > > Error Message is :- > > > > --- > > Thanks, > Harvinder > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

RE: Declarative Exception handling with Struts 1.1-b2

2002-10-07 Thread Harvinder Singh
d" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> Error Message is :- --- Thanks, Harvinder -Original Message----- From: [EMAIL PROTECTED] [mailto:[EMA

RE: Declarative Exception handling with Struts 1.1-b2

2002-10-07 Thread chuckcavaness
to:[EMAIL PROTECTED]] > Sent: Monday, October 07, 2002 5:50 PM > To: Struts Users Mailing List > Subject: Re: Declarative Exception handling with Struts 1.1-b2 > > > If you haven't already, may I suggest you download the > draft of Chapter 10 from my book. It covers S

RE: Declarative Exception handling with Struts 1.1-b2

2002-10-07 Thread Harvinder Singh
and there is a way to handle the situation I mentioned above. Thanks, Harvinder -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 5:50 PM To: Struts Users Mailing List Subject: Re: Declarative Exception handling with Struts 1.1-b2 If you

Re: Declarative Exception handling with Struts 1.1-b2

2002-10-07 Thread deepank
TED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, October 07, 2002 5:49 PM Subject: Re: Declarative Exception handling with Struts 1.1-b2 > If you haven't already, may I suggest you download the > draft of Chapter 10 from my book. It covers Stru

Re: Declarative Exception handling with Struts 1.1-b2

2002-10-07 Thread chuckcavaness
If you haven't already, may I suggest you download the draft of Chapter 10 from my book. It covers Struts and Exception Handling (both programmatic and declarative). Here's a link: http://www.theserverside.com/resources/strutsreview.jsp Sorry for the shameless plug, but I think the material

RE: Declarative exception handling

2002-09-27 Thread Jerry Jalenak
} This way I can use the and tags like normal. HTH, Jerry Jalenak > -Original Message- > From: Karen Lee [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 27, 2002 12:47 PM > To: struts user > Subject: RE: Declarative exception handling > > &

RE: Declarative exception handling

2002-09-27 Thread Karen Lee
iginal Message- > From: Charles McClain [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 26, 2002 6:03 PM > To: 'Struts Users Mailing List'; [EMAIL PROTECTED] > Subject: RE: Declarative exception handling > > > Juan: >

RE: Declarative exception handling

2002-09-27 Thread Juan Alvarado \(Struts List\)
TED]] Sent: Thursday, September 26, 2002 6:03 PM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Declarative exception handling Juan: Yes. I cribbed some code from the Struts example app that was reworked for Struts 1.12

RE: Declarative exception handling

2002-09-26 Thread Charles McClain
Juan: Yes. I cribbed some code from the Struts example app that was reworked for Struts 1.12b. It appears below: -Original Message- From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]] Sent: Thursday, Sept

RE: Declarative exception handling

2002-09-26 Thread Trieu, Danny
No .. You can use Action.Globals.EXCEPTION_KEY to get it from the request .. -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 2:52 PM To: 'Struts Users Mailing List' Subject: RE: Declarative exception handling I'm n

RE: Declarative exception handling

2002-09-26 Thread Galbreath, Mark
I'm not certain, but wouldn't the exception be in ActionErrors? -Original Message- From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 5:43 PM Does anyone know of a way to include the exception message in the body of an error page one has decla

RE: Declarative Exception handling using the Tiles RequestProcesso an d the SubApp feature of Struts1.1

2002-08-13 Thread Trieu, Danny
day, August 13, 2002 11:19 AM To: Struts Users Mailing List Subject: Re: Declarative Exception handling using the Tiles RequestProcesso an d the SubApp feature of Struts1.1 Danny, A couple things: First, the path attribute should begin with a "/". When the ExceptionHandler has its execu

Re: Declarative Exception handling using the Tiles RequestProcesso an d the SubApp feature of Struts1.1

2002-08-13 Thread chuckcavaness
Danny, A couple things: First, the path attribute should begin with a "/". When the ExceptionHandler has its execute() method called, if the path is specified, it creates an ActionForward on the fly using the path attribute that you specify. Otherwise, the input attribute is used from the

RE: Declarative Exception handling using the Tiles RequestProcesso an d the SubApp feature of Struts1.1

2002-08-13 Thread Trieu, Danny
Chuck, I am getting 404 with the 1.1b1. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 10:52 AM To: Struts Users Mailing List Subject: Re: Declarative Exception handling using the Tiles RequestProcesso an d the SubApp feature of

Re: Declarative Exception handling using the Tiles RequestProcesso an d the SubApp feature of Struts1.1

2002-08-13 Thread chuckcavaness
The path attribute is supposed to be module-relative. Are you getting a 404? Are you using 1.1b2 or just the latest 1.1b1? Chuck > Chuck, > > What is your take on this? When I throw and Exception within and Action, > Struts found my declared Exception alright. But it doesn't seems to find > t