title: Linking HTML to JSP page
body: <p>I'm have problems linking my HTML and JSP. Just trying to make a simple html page to take a "email" and "password" then have the jsp display on the next page. But when i click submit the parameters dont get passed i just get "null", any ideas where im going wrong?</p>
  
  <p>HTML Page</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
          &lt;title&gt;Enter your email and password&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
          &lt;form action="form.jsp" method="get"&gt;
          &lt;table cellspacing="5" border="0"&gt;
                  &lt;tr&gt;
                       &lt;td align="right"&gt;Email:&lt;/td&gt;
                       &lt;td&gt;&lt;input type="text" email=email&gt;&lt;/td&gt;
                  &lt;/tr&gt;
  
                  &lt;tr&gt;
                       &lt;td align="right"&gt;Password:&lt;/td&gt;
                       &lt;td&gt;&lt;input type="text" password=password&gt;&lt;/td&gt;
                  &lt;/tr&gt;
  
                  &lt;tr&gt;
                       &lt;td&gt;&lt;/td&gt;
                       &lt;td&gt;&lt;br&gt;&lt;input type="submit" value="Submit"&gt;&lt;/td&gt;
                  &lt;/tr&gt;
          &lt;/table&gt;
          &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>JSP Page</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
          &lt;%
          // get info from request
          String email = request.getParameter("email");
          String password = request.getParameter("password");
          %&gt;
  
          &lt;p&gt;Here is the info you provided:&lt;/p&gt;
  
          &lt;table cellspacing="5" cellpadding="5" border="1"&gt;
              &lt;tr&gt;
                  &lt;td align="right"&gt;Email:&lt;/td&gt;
                  &lt;td&gt;&lt;%= email %&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr&gt;
                  &lt;td align="right"&gt;Password:&lt;/td&gt;
                  &lt;td&gt;&lt;%= password %&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
          &lt;/table&gt;
  
  
          &lt;form action= "Next" method="post"&gt;
                  &lt;input type="submit" value="Return"&gt;
          &lt;/form&gt;
  
          &lt;/body&gt;
          &lt;/html&gt;
  </code></pre>