title: Get HttpServletRequest in Struts 2 interceptor
body: <p>To get the <code>HttpServletRequest</code> in an interceptor I used below code:</p>
  
  <pre><code>HttpServletRequest request =(HttpServletRequest) ActionContext.getContext().get(HTTP_REQUEST);
  </code></pre>
  
  <p>I tried to implement <code>ServletRequestAware</code> in the interceptor but it did not worked.</p>
  
  <p>Are there any better ways to get <code>HttpServletRequest</code> in an Interceptor ?!</p>