Submitting Text Fields : Form TextField « JSP « Java






Submitting Text Fields

//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>





           
       








getTextFieldValue.zip( 88 k)

Related examples in the same category

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