title: Liferay 6 , Custom Login Page
body: <p>I am using Liferay 6  for development , i have developed Liferay6 Struts2 Portlet and deployed .
  Using Custom JSPs Hooks , i have overridden  the $PORTAL_ROOT_HOME/html/portlet/login login.jsp and created 
  my own jsp page as shown </p>
  
  <pre><code>&lt;HTML&gt;
      &lt;HEAD&gt;
          &lt;TITLE&gt;Login using jsp&lt;/TITLE&gt;
      &lt;/HEAD&gt;
      &lt;BODY&gt;
          &lt;H1&gt;LOGIN FORM&lt;/H1&gt;
              &lt;form&gt;
                  &lt;table&gt;
                      &lt;tr&gt;
                          &lt;td&gt; Username  : &lt;/td&gt;&lt;td&gt; &lt;input name="username" size=15 type="text" /&gt; &lt;/td&gt; 
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt; Password  : &lt;/td&gt;&lt;td&gt; &lt;input name="password" size=15 type="text" /&gt; &lt;/td&gt; 
                      &lt;/tr&gt;
                  &lt;/table&gt;
                  &lt;input type="submit" value="login" /&gt;
              &lt;/form&gt;
      &lt;/BODY&gt;
  &lt;/HTML&gt; 
  </code></pre>
  
  <p>This works fine , the custom jsp  page is being shown up . 
  Now please tell upon clicking on the submit button , how can i wrie a java class which validates the credentials aganist database .</p>
  
  <p>Please tell me how can i recieve these values under my class and validate them .</p>
  
  <p>Thanks </p>