marcell
May 18th, 2007, 03:18 PM
Hi,
How do I know inside a preHandle of a HandlerInterceptor which method is going to be called in a MultiActionController. I need this information to capture a method annotation.
I'm using convention over configuration. That is, my url is http://hostname/action/model/add therefore my add method of my ModelController whon extend MultiActionController is going to be called.
Today I have:
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
System.out.println(handler.getClass());
return super.preHandle(request, response, handler);
}
is printing:
br.gov.go.tj.projudi.mvc.controller.ModelControlle r
Tnx.
How do I know inside a preHandle of a HandlerInterceptor which method is going to be called in a MultiActionController. I need this information to capture a method annotation.
I'm using convention over configuration. That is, my url is http://hostname/action/model/add therefore my add method of my ModelController whon extend MultiActionController is going to be called.
Today I have:
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
System.out.println(handler.getClass());
return super.preHandle(request, response, handler);
}
is printing:
br.gov.go.tj.projudi.mvc.controller.ModelControlle r
Tnx.