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?
6 matches
Mail list logo