Hi Forum!
I've got a little Problem. I defined the following:
The Behavior: I set a breakpoint in the LocaleChangeInterceptor and in my TestInterceptor, the TestInterceptor even contains logging output. But nothing of this is ever called.PHP Code:<context:component-scan base-package="fhkoeln.edb.nftool" use-default-filters="false">
<mvc:annotation-driven/>
<mvc:interceptors>
<bean class="org.springframework.web.servlet.theme.ThemeChangeInterceptor"/>
<bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" p:paramName="lang"/>
<bean class="fhkoeln.edb.nftool.web.TestInterceptor" />
</mvc:interceptors>
My URL is like localhost:8080/3nftool/app/doexercise/?lang=en&execution=e2s3
The Project was initially generated by Roo. It uses Tiles 2 (Is that important?).
The result is, that I can't change the locale. First, I thought, the <mvc:interceptors> doesn't affect the URL-Handler-Mapping in conjunction with tiles ... but it seems to work in others projects.
By the way: Yes, I started Apache 7 in debugging mode. ;-)
My TestInterceptor:
PHP Code:public class TestInterceptor extends HandlerInterceptorAdapter {
Logger logger = Logger.getLogger(TestInterceptor.class);
@Override
public boolean preHandle(HttpServletRequest request,
HttpServletResponse response, Object handler) throws Exception {
logger.warn("### Ich werde aufgerufen!");
return super.preHandle(request, response, handler);
}
}


Reply With Quote
.
:
