Search code examples
javastripes

Stripes: Wrong action class mapping.


In Stripes, If there is a wrong action class mapping, the default behaviour of Stripes is that it forwards the control to the same JSP from which the request is made and gives out a complete error stack.

I plan to modify this behaviour and want to give a more user friendly message in case of error.

Said that, Is there a way to redirect to a new page (an error page) in case of wrong action mapping in Stripes?

Thanks.


Solution

  • You can overwrite the behavior of ActionBeanContext#getSourcePageResolution. You can do what you want there.