title: Login form in JSP
body: <p>enter code hereHiya, so far I didn't use JSP at all and I find some online tutorials to be very complicated to learn from them, I need to make simple login form .. its not problem for me to do it in PHP but in JSP ist a big problem. Here is how I'd do it in PHP plain and simple, HTML :</p>
  
  <pre><code>&lt;form action="action.php" method="post"&gt;
  &lt;input name="username" type="text" /&gt;
  &lt;input name="password" type="password" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Here is action.php</p>
  
  <pre><code>&lt;?php
  $user = $_POST['username'];
  $pwd = $_POST['password'];
  if($user != "" &amp;&amp; $pwd != "")
  {
    ... check whether md5 value of $pwd for username $user matches the value in database..
  if so then redirect somewhere..
  }
  ?&gt;
  </code></pre>
  
  <p>How would I do something like this in JSP</p>