title: Cannot call method of a portlet using <portlet:actionURL>
body: <p>I've been trying to call a method 'signinAction' of the portlet using  with the help of this little tutorial <a href="http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/developing-a-portlet-with-multiple-actions" rel="nofollow">Developing Portlet with Multiple Actions</a>.
  But when I try to do it, I get <strong>Portlet is temporarily unavailable</strong> error. I cannot see anything in the Tomcat's server console. Also when I use processAction() I don't get the error. I don't know what is wrong.</p>
  
  <p>JSP:</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1" isELIgnored="false"%&gt;
  &lt;%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %&gt;
  
  &lt;portlet:actionURL var="signinAction" name="signinAction"&gt;
  &lt;/portlet:actionURL&gt;
  
  
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Login&lt;/title&gt;
  
  
  &lt;/head&gt;
  &lt;body onload="load()" id="body1"&gt;
  &lt;form action="&lt;%=signinAction.toString() %&gt;" name="signinForm" method="post" onsubmit="return signin(this)"&gt;
  
  &lt;center&gt;
  
  &lt;div class="div-upside-down" id="div-style"&gt;    
  
  &lt;table  width="95%"&gt;
  &lt;tr&gt;
      &lt;td colspan="3"&gt;&lt;p class="pp"&gt;&lt;/p&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td id="td1"&gt;
          &lt;input type="text"  id="email" name="email"  placeholder="Email" /&gt;
          &lt;p id="one"&gt;&lt;/p&gt;
      &lt;/td&gt;
  
      &lt;td id="td2"&gt;
          &lt;input type="password"  id="password" name="password"  placeholder="Password" /&gt;
          &lt;p id="one"&gt;&lt;/p&gt;
      &lt;/td&gt;
  
      &lt;td id="td3"&gt;
          &lt;input type= "submit" name= "submit" value="Login"/&gt;
          &lt;p id="one"&gt;&lt;/p&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  &lt;/center&gt;
  &lt;/form&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Portlet:</p>
  
  <pre><code>public class HelloWorldPortlet extends GenericPortlet {
  
  ThemeDisplay td;
  
  
   public void signinAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException, IOException{
         long companyId=10154;
         String email = actionRequest.getParameter("email");
         String password = actionRequest.getParameter("password");
  
         try
          {
          int authResult = 0;
          long userId = 0;
          Company company = PortalUtil.getCompany(actionRequest);
          Map headerMap = new HashMap();
  
  
          Map parameterMap = actionRequest.getParameterMap();
  
  
  
          authResult = UserLocalServiceUtil.authenticateByEmailAddress(company.getCompanyId(), email, password,headerMap, parameterMap, null);
          userId = UserLocalServiceUtil.getUserIdByEmailAddress(company.getCompanyId(), email);
          User user = UserLocalServiceUtil.getUserByEmailAddress(companyId, email);
          String screenId = user.getScreenName();
          td = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);  
  
          MethodKey key = new MethodKey("com.liferay.portlet.login.util.LoginUtil", "login", HttpServletRequest.class, HttpServletResponse.class, String.class, String.class, boolean.class, String.class);
          PortalClassInvoker.invoke(false, key, new Object[] { PortalUtil.getHttpServletRequest(actionRequest), PortalUtil.getHttpServletResponse(actionResponse),screenId, password, true, CompanyConstants.AUTH_TYPE_SN});
          actionResponse.sendRedirect(td.getPathMain());
  
          }
          catch (Exception e)
          {
          e.printStackTrace();
          }
          }
  }
  </code></pre>
  
  <p>Please Help.       </p>