assaf
Sep 30th, 2004, 10:22 AM
I'd like to write an interceptor that checks if the user is logged in, but only apply it (declaratively if possible) to certain URLs.
e.g. if the user enters /login.action the interceptor is not applied, but if he enters /search.action it is.
The method described in the documentation (http://www.springframework.org/docs/reference/mvc.html#mvc-handlermapping-interceptor) applies the interceptor to all requests independent of the URL.
What's the best way of going about this?
Best regards,
Assaf
e.g. if the user enters /login.action the interceptor is not applied, but if he enters /search.action it is.
The method described in the documentation (http://www.springframework.org/docs/reference/mvc.html#mvc-handlermapping-interceptor) applies the interceptor to all requests independent of the URL.
What's the best way of going about this?
Best regards,
Assaf