Inserting Text into Text Fields : Form TextField « JSP « Java






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

1.Form TextField Demo
2.Submitting Text Fields
3.Submitting Text Fields 2