index.jsp
<HTML>
<HEAD>
<TITLE>Submitting Text Fields</TITLE>
</HEAD>
<BODY>
<H1>Submitting Text Fields</H1>
<FORM ACTION="basic.jsp" METHOD="POST">
Please enter your name:
<INPUT TYPE="TEXT" NAME="text1">
<BR>
<INPUT TYPE="SUBMIT" value="Submit">
</FORM>
</BODY>
<HTML>
basic.jsp
<HTML>
<HEAD>
<TITLE>Reading Data From Text Fields</TITLE>
</HEAD>
<BODY>
<H1>Reading Data From Text Fields</H1>
Your name is
<% out.println(request.getParameter("text1")); %>
</BODY>
</HTML>
Download: JSPReadFormTextField.zip( 1 k)