title: Multiplication table?
body: <p>I need to Write 2 web pages with the following attributes:</p>
  
  <ul>
  <li>Form (decide if this should be html or jsp file).<br>
  Form contains an HTML form with two fields:a text input (called "size") and a button.</li>
  </ul>
  
  <p>When the button is clicked, another page appears..</p>
  
  <ul>
  <li>Table (decide if this is HTML or JSP)<br>
  Table shows the multipications table up to the "size" in the previous page.</li>
  </ul>
  
  <p>Example:<br>
  If 3 was clicked, then the output will be:</p>
  
  <pre><code>1 2 3
  2 4 6
  3 6 9
  </code></pre>
  
  <p>Also, add a button to Table so that pressing this button will make the table disappear.</p>
  
  <p>Here is my form code</p>
  
  <pre><code>&lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
      &lt;h1&gt;multiplication table&lt;/h1&gt;
      &lt;form action="form_action.jsp" method="get"&gt;
          Size: &lt;input type="size" name="size" size="35" /&gt;&lt;br /&gt; 
          &lt;input type="submit" value="Submit" /&gt;
      &lt;/form&gt;
      &lt;p&gt;Click on the submit button, and the input will be sent to a page
          on the server called "form_action.jsp".&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and my page generating multipications table</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=UTF-8"
      pageEncoding="UTF-8"%&gt;
  &lt;head&gt;
  &lt;title&gt;Calculation from a form&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;Calculation&lt;/div&gt;
      &lt;table border="Calculation"&gt;
          &lt;%
              String temp = request.getParameter("number");
              int x = Integer.parseInt(temp);
              String table = "&lt;table border='1' id='mytable'&gt;";
              for (int row = 1; row &lt; 11; row++) {
          %&gt;
          &lt;tr&gt;
              &lt;%
                  for (int column = 1; column &lt; 11; column++) {
              %&gt;
              &lt;td&gt;&lt;tt&gt;&lt;%=row * column%&gt;&lt;/tt&gt;&lt;/td&gt;
              &lt;%
                  }
              %&gt;
          &lt;/tr&gt;
          &lt;%
              }
          %&gt;
      &lt;/table&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Can anyone help me to begin this?</p>