0

I am hoping to use Spring flash messages. One way to enable it is to use <mv:annotation-driven/> in spring-servlet.xml. However, it causes problems to other parts of the application, and I found the explanation here

How to register handler interceptors with spring mvc 3.0?

I have interceptors defined in spring-servlet.xml

<bean id="handlerMapping"
    class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"> 
    <property name="interceptors"> 
        <list>
        interceptors
        </list> 
    </property>
</bean>

I tried the use of <mv:annotation-driven/> plus moving interceptors under <mvc:interceptors>, but it caused other problems.

So IF I want to use the flash messages tool, can I make it work without having <mv:annotation-driven/> or using <mvc:interceptors> in spring-servlet.xml?

Regards and thanks.

Community
  • 1
  • 1
curious1
  • 14,155
  • 37
  • 130
  • 231

1 Answers1

1

I was just looking at this myself and found this post that may be useful to you. Using the Flash scope ( and RedirectAttributes ) without <mvc:annotation-driven /> in Spring MVC 3.1

Community
  • 1
  • 1
smcnena
  • 11
  • 1