Insert Text To Form TextField : Form TextField « JSP « Java Tutorial






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)








23.19.Form TextField
23.19.1.Read value in Form TextField using JSP
23.19.2.Insert Text To Form TextField