index.jsp
<HTML>
<HEAD>
<TITLE>Inserting Text into Text Fields</TITLE>
</HEAD>
<BODY>
<H1>Inserting Text into Text Fields</H1>
<FORM NAME="form1" ACTION="basic.jsp" METHOD="POST">
<INPUT TYPE="TEXT">
<INPUT TYPE="SUBMIT" VALUE="Click Me!">
</FORM>
</BODY>
</HTML>
basic.jsp
<HTML>
<HEAD>
<TITLE>Inserting Text into Text Fields</TITLE>
</HEAD>
<BODY>
<H1>Inserting Text into Text Fields</H1>
<FORM NAME="form1">
<INPUT TYPE="TEXT" VALUE="Hello from JSP!">
<INPUT TYPE="SUBMIT" VALUE="Click Me!">
</FORM>
</BODY>
</HTML>
Download: InsertTextToFormTextField.zip( 1 k)