//File: index.html
<HTML>
<HEAD>
<TITLE>Submitting Text Fields</TITLE>
</HEAD>
<BODY>
<H1>Submitting Text Fields</H1>
<FORM ACTION="formAction.jsp" METHOD="POST">
Please enter your name:
<INPUT TYPE="TEXT" NAME="text1">
<BR>
<INPUT TYPE="SUBMIT" value="Submit">
</FORM>
</BODY>
<HTML>
/////////////////////////////////////////////////////////////////////////
//File: formAction.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>