Review the code below:

myform.html
Java Code:
<html>
  <head>
    <title>Testing JSP</title>
  </head>
  <body>
    <h1>Welcome to JSP</h1>
    <form action="myjsp.jsp" method="POST" >
            <input type="text" name="name" />
      <p> 
        <input type="submit" name="Submit" value="Submit name" />
        <input type="reset" name="Reset" value="Reset form" />
      </p>
    </form>
  </body>
</html>
myjsp.jsp
Java Code:
<html>
  <head>
    <title>Testing JSP</title>
  </head>
  <body>
    <h1>JSP test</h1>
    <%
    String name   = request.getParameter("name");
    if (name.trim().length() == 0) {
    %>
      No name entered.<br>
    <%
    } else {
    %>
      Welcome <%=name%><br><br><br> 
    <%
    }
    %>
    <a href="myform.html">Try again?</a>
  </body>
</html>