title: Use a div as a submit button in JSP Servlets
body: <p>I need a way to use a div as a submit button to send a form request to a Servlet, Or is there any other way to solve my problem. "logoutbutton" is the div.</p>
  
  <pre><code>&lt;div class="logoutbutton"&gt;
       &lt;table width="100%"&gt;
          &lt;tr&gt;
             &lt;td width="50px"&gt;&lt;img src="img/usericon.png" width="44" height="44" /&gt;&lt;/td&gt;
             &lt;td&gt;&lt;a style="font-size:12px; font-family:Verdana, Geneva, sans-serif; color:#FFF"&gt;&lt;% out.print(session.getAttribute("userid")); %&gt;&lt;/a&gt;&lt;br /&gt;
                &lt;a style="font-size:20px; font-family:Verdana, Geneva, sans-serif; color:#FFF"&gt;Log Out&lt;/a&gt;
             &lt;/td&gt;
          &lt;/tr&gt;
       &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>