Java Tutorial/JSTL/Form TextField

Материал из Java эксперт
Перейти к: навигация, поиск

Get value from Form TextField And Output the value by using JSTL

<html>
  <head><title>Create Person</title></head>
  <body>
    <h1>Enter your details</h1>
    <form action="listPageParameters.jsp" method="post">
      <table>
        <tr><td>First name:</td>
            <td><input type="text" name="firstName" /></td>
        </tr>
        <tr><td>Last name:</td>
            <td><input type="text" name="lastName" /></td>
        </tr>
        <tr><td>Age:</td>
            <td><input type="text" name="age" /></td>
        </tr>
      </table>
      <input type="submit" value="Submit details" />
    </form>
  </body>
</html>