title: Redirect to another jsp page after submitting a form
body: <p>I have 2 jsp pages "/page1.jsp","/page2.jsp" and "file.java", after submitting a form from "/page1" i want to go to action method take some records from the database and go to the "/page2" with the records i have and list it. All is done but for some reason i cannot go to the "/page2" page it takes me somewhere else(another .jsp page). </p>
  
  <p>I am using liferay and extending MVCPortlet class</p>
  
  <p>Thanks in advance!!!.</p>
  
  <pre><code>public void AddCustomer(ActionRequest actionRequest, ActionResponse actionResponse) throws                  IOException, PortletException {
  
      ...
  
      pCustomer.setCustomerId(customerId);
  
      // set UI fields
      pCustomer.setName(cusName);
      pCustomer.setAddress(address);
      pCustomer.setComments(comments);
      try {
          PCustomerLocalServiceUtil.addPCustomer(pCustomer);
      } catch (com.liferay.portal.kernel.exception.SystemException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      ...
  }
  </code></pre>
  
  <p>addCustomer.jsp:</p>
  
  <pre><code>&lt;portlet:actionURL var="addCustomersAct" name="AddCustomer"&gt;
  &lt;portlet:param name="jspPage" value="/allCustomers.jsp"/&gt;
  &lt;/portlet:actionURL&gt;  
  &lt;form method="post" action="&lt;%= addCustomersAct %&gt;"&gt;
   ...
  &lt;/form&gt;
  </code></pre>
  
  <p>allCustomers.jsp</p>
  
  <pre><code>&lt;%for (PCustomer allCustomer : customers) { %&gt;
  &lt;tr&gt;
   ...//List of all customers
  &lt;/tr&gt;
  &lt;% } %&gt;
  </code></pre>
  
  <p>On top of the addCustomers.jsp i have some more portlet parameters because I have a sidemenu and i need them for the render requests.</p>