title: how can i get the PortletRequest
body: <p>My problem is to obtain <code>PortletRequest</code> from <code>HttpServletRequest</code></p>
  
  <p>I put this sentence: </p>
  
  <pre><code>PortletRequest request = (PortletRequest) HttpServletRequest.getAttribute();
  </code></pre>
  
  <p>What should I put into the <code>.getAttribute();</code></p>
  
  <p>When I developed in IBM Portlet Factory, I used <code>.getAttribute(Constants.PORTLET_REQUEST)</code>
  The Constants are into one <code>.jar</code></p>
  
  <p>Now I need to do this with <code>Portlet</code> in <code>JSR168</code> or there is another way to obtain <code>PortletRequest</code> without using <code>HttpServletRequest</code></p>
  
  <p>I hope you can help me</p>