Re: Handling Exceptions in Action constructors

2008-07-10 Thread Jim Kiley
in your situation, > but > > not knowing more details it's my first suggestion. > > > > jk > > > > On Wed, Jul 9, 2008 at 12:00 PM, Lyallex <[EMAIL PROTECTED]> wrote: > > > >> Hi > >> > >> I have a question about handling Excep

Re: Handling Exceptions in Action constructors

2008-07-10 Thread Lyallex
D]> wrote: > >> Hi >> >> I have a question about handling Exceptions in Action constructors >> >> I have the following constructor in an Action >> >>public SomeAction() throws BusinessComponentException { >>someComponent = new

Re: Handling Exceptions in Action constructors

2008-07-09 Thread Jim Kiley
Wed, Jul 9, 2008 at 12:00 PM, Lyallex <[EMAIL PROTECTED]> wrote: > Hi > > I have a question about handling Exceptions in Action constructors > > I have the following constructor in an Action > >public SomeAction() throws BusinessComponentExcepti

Handling Exceptions in Action constructors

2008-07-09 Thread Lyallex
Hi I have a question about handling Exceptions in Action constructors I have the following constructor in an Action public SomeAction() throws BusinessComponentException { someComponent = new SomeBusinessComponent(); } Now when an instance of this Action is

Re: Handling exceptions in a custom result

2007-08-07 Thread Vinod Singh
page return "error"; } } Vinod Original Message ---- Subject: Handling exceptions in a custom result From: Juan Damasceno <[EMAIL PROTECTED]> To: user@struts.apache.org Date: Tuesday, August 07, 2007 4:56:41 PM I need to do so

Re: Handling exceptions in a custom result

2007-08-07 Thread Juan Damasceno
It doesn´t works, the Result is executed after the Interceptors On 8/7/07, Thorsten Schäfer <[EMAIL PROTECTED]> wrote: > > > I need to do something like: > > > > public void execute(ActionInvocation invocation) throws > > Exception { > > try { > >// Some operations > >

RE: Handling exceptions in a custom result

2007-08-07 Thread Thorsten Schäfer
> I need to do something like: > > public void execute(ActionInvocation invocation) throws > Exception { > try { >// Some operations > } catch (Exception e) { >//Send user to a error page > } > } > > Any idea? You could write an intercepto

Re: Handling exceptions in a custom result

2007-08-07 Thread Juan Damasceno
tions > } catch (Exception e) { >//Send user to a error page >return "error"; > } > } > Vinod > > Original Message > Subject: Handling exceptions in a custom result > From: Juan Damasceno <[EMAIL PROTECTED]&g

Re: Handling exceptions in a custom result

2007-08-07 Thread Vinod Singh
} Vinod Original Message Subject: Handling exceptions in a custom result From: Juan Damasceno <[EMAIL PROTECTED]> To: user@struts.apache.org Date: Tuesday, August 07, 2007 4:56:41 PM I need to do something like: public void execute(ActionInvocation invocation)

Handling exceptions in a custom result

2007-08-07 Thread Juan Damasceno
I need to do something like: public void execute(ActionInvocation invocation) throws Exception { try { // Some operations } catch (Exception e) { //Send user to a error page } } Any idea?

Re: Handling Exceptions

2006-03-13 Thread Frank W. Zammetti
Here you go: http://struts.apache.org//struts-doc-1.2.7/userGuide/building_controller.html#exception_handler As you describe, I think you'll very much like the global exception handling mechanism. Frank bib_lucene bib wrote: Hi All In my struts based web application how do I handle ex

Handling Exceptions

2006-03-13 Thread bib_lucene bib
Hi All In my struts based web application how do I handle exceptions. I just want to display a message to the user, and on clicking "ok" I want to take himm to the index page of web application. Can some one please point me to an example of how to do this. Thanks bib/-