You can obtain the request by asking the ActionContext or implementing ServletRequestAware. Implementing ServletRequestAware is preferred.

Ask the ActionContext

The request is available on the ActionContext instance, which is made available via ThreadLocal.

HttpServletRequest request = ServletActionContext.getRequest();

Implement ServletRequestAware

(star) Preferred