DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
Unknown macro: {snippet}
Parameters
Unknown macro: {snippet}
Extending the Interceptor
Unknown macro: {snippet}
Examples
Unknown macro: {snippet}
DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
3 Comments
Alex Funk
Sep 16, 2007See also http://cwiki.apache.org/confluence/display/WW/Exception+Configuration
shridhar upadhyaya
Nov 17, 2008I found the following way to use the ExceptionInterceptor in my application:
public class ExceptionInterceptor extends ExceptionMappingInterceptor {
private Logger logger = Logger.getLogger(ExceptionInterceptor.class);
private ExceptionHandler exceptionHandler;
protected void publishException(ActionInvocation invocation, ExceptionHolder exceptionHolder)
}
I take the exceptionholder object and put it in the valuestack.
I configure this custom Interceptor in the interceptor.xml. I also created a Error.jsp to be invoked once this exceptionInterceptor traps an exception to display the exception stack trace
in a window.
Dave Newton
Nov 18, 2008The exception and exceptionStack are already made available on the stack, thus on the error page the exception is mapped to--what additional benefit does this provide? See Exception Configuration for details.