I'm getting an IllegalStateException that I'd like to demonstrate by using the tiles-example included with spring-framework-1.2.6.
1) Create an error page in web.xml
2) Create the exception page at /exception.jspCode:<error-page> <exception-type>javax.servlet.jsp.JspException</exception-type> <location>/exception.jsp</location> </error-page>
3) Modify /WEB-INF/jsp/contact.jsp so that it contains the following:
4) build and deployCode:<% boolean throwIt = true; if (throwIt) { throw new javax.servlet.jsp.JspException("test"); } %>
5) test the app by navigating to the contact menu item.
- Examine your server log and you will see:
which of course prevents me from getting to the configured error page.Code:java.lang.IllegalStateException at org.apache.coyote.Response.reset(Response.java:296)
Could anyone recommend the best way to handle exceptions in views when using Tiles.


Reply With Quote