Inserting Text into Text Fields
//File: index.html
<HTML>
<HEAD>
<TITLE>Inserting Text into Text Fields</TITLE>
</HEAD>
<BODY>
<H1>Inserting Text into Text Fields</H1>
<FORM NAME="form1" ACTION="formAction.jsp" METHOD="POST">
<INPUT TYPE="TEXT">
<INPUT TYPE="SUBMIT" VALUE="Click Me!">
</FORM>
</BODY>
</HTML>
//File: formAction.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>
JspFillTextField.zip( 89 k)Related examples in the same category