title: Liferay portlet does not receive form data
body: <p>I have made a portlet in Liferay which displays a form. I would like to process the form data after submit, but the data "disappears" somewhere.</p>
  
  <p>This is my form code in jsp:</p>
  
  <pre><code>&lt;portlet:actionURL windowState="normal" var="filterURL"&gt;
  &lt;/portlet:actionURL&gt;
      &lt;form action="&lt;portlet:actionURL /&gt;" method="post"&gt;
      Industry: &lt;input type="text" name="&lt;portlet:namespace /&gt;industry" value="&lt;%= industryFilter %&gt;"/&gt;
      &lt;input type="submit" value="Filter" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The data should be passed to my portlet class, but it won't. This is my class code:</p>
  
  <pre><code>public void processAction(
          ActionRequest actionRequest, ActionResponse actionResponse)
      throws IOException, PortletException {
  
      String industryFilter = actionRequest.getParameter("industry");
      if(industryFilter == null) {
          industryFilter = "no-param";
      }
      actionResponse.setRenderParameter("industry", industryFilter);
  
      super.processAction(actionRequest, actionResponse);
  }
  </code></pre>
  
  <p>This class is intended to pass the data back to the jsp. The <code>setRenderParameter()</code> method works fine, as in jsp I can read the value using <code>request.getParameter("industry");</code> However, it returns always "no-param", which means, the <code>actionRequest.getParameter()</code> return null.</p>
  
  <p>So, it seems my <code>processAction</code> methods gets properly called, but it does not receive the form data. Where is the error, what did I wrong?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I downloaded the portlet to my local machine, deployed to a local demo Liferay installation, and it worked! So the code should be ok, it must be some server setting/problem. One difference I realized that in the network tab of the Chrome developer tools, the local server has only one POST call with status 200 while on the remote server there is a POST with 302 Moved Temporarily and a GET 200 with the same URL! Could it cause the problem?</p>