How to send exceptions to exceptionController?
Posted
by ivar
on Stack Overflow
See other posts from Stack Overflow
or by ivar
Published on 2010-05-25T13:42:21Z
Indexed on
2010/05/26
7:11 UTC
Read the original article
Hit count: 185
<bean
class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
<property name="mappedHandlers">
<set>
<ref bean="exceptionController" />
</set>
</property>
<property name="defaultErrorView" value="tiles/content/error" />
</bean>
I'm trying to send exceptions to a controller so I can create a redirect. If I comment out the mappedHandlers part then the error tile is displayed but it is only a tile. The rest of the tiles load normally. I need to make a redirect in the controller so I can show an error page not just an error tile.
I can't find enough information or an example how the exception invokes some method in exceptionController.
© Stack Overflow or respective owner