• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Spring 3 upgrade - Circular mapping error

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,

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 -
<prop key="/**/">Myapp:name=controller/content/Controller1</prop>

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?

Regards,
Abhi
 
There will be plenty of time to discuss your objections when and if you return. The cargo is this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic