Monday, 11 April 2011

How do you get the HttpServletRequest object in an interceptor ?

Here is the intercept method
public String intercept(ActionInvocation invoke) throws Exception {
ActionContext action=invoke.getInvocationContext();
HttpServletRequest req=(HttpServletRequest)action.get(StrutsStatics.HTTP_REQUEST);
  return null;
 }

No comments:

Post a Comment