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
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
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
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
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
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
> >
> 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
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
}
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)
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?
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
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/-
12 matches
Mail list logo