PDA

View Full Version : HandlerInterceptor and View


mlarchet
Jun 10th, 2008, 05:37 AM
I'm facing a problem I'm sure someone already had.

I want to secure an URL of my application, and I can't use Acegi.
I've extended HandlerInterceptorAdapter and overriden the preHandle method.

I have a errorView property containing the view that should be rendered if the user is not allowed.
How in the preHandle method could I set a ModelAndView ?

Thanks