I have a case in my application where I have mapped all URLs to go through a single controller. The SimpleUrlHandlerMapping mapping is something like -
This controller does some work and in most cases, it forwards to other controller mappings. In one case it forwards to a jsp with a code like -
return new ModelAndView( "/content/template" );
This piece of code used to work properly in Spring 2.5.
However after migrating to Spring 3, it gives an error for circular redirect.
javax.servlet.jsp.JspException: Error: IOException while writing to client, theController=/myApp/mapping1 Circular view path [/jsp/content/template.jsp]: would dispatch back to the current handler URL [/jsp/content/template.jsp] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
Can someone please provide some inputs as to why this could happen and how to solve this?
There will be plenty of time to discuss your objections when and if you return. The cargo is this tiny ad: