Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvc:interceptors configuration is not aware of 'p' namespace [SPR-6414] #11080

Closed
spring-projects-issues opened this issue Nov 23, 2009 · 0 comments
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Nov 23, 2009

Stefan Schmidt opened SPR-6414 and commented

With the new mvc:interceptors configuration option introduced by #11018 I can register interceptors:

<mvc:annotation-driven>
   <mvc:interceptors>
      <bean name="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
         <property name="paramName" value="lang" />
      </bean>
      <bean class="org.springframework.web.servlet.theme.ThemeChangeInterceptor" p:paramName="theme1"/>
   </mvc:interceptors>
</mvc:annotation-driven>

While the LocaleChangeInterceptor bean definition does register the paramName property correctly, the ThemeChangeInterceptor does not. This is due to the use of the xmlns:p="http://www.springframework.org/schema/p" namespace which does not seem to be taken into account.


Issue Links:

  • ROO-385 Use new Spring MVC namespace ("is depended on by")

Referenced from: commits de1d548

@spring-projects-issues spring-projects-issues added type: bug A general bug in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0 RC3 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant