Handle Form Button Action : Form Button « JSP « Java Tutorial






<HTML>
    <HEAD>
        <TITLE>Submitting a Form</TITLE>
    </HEAD>

    <BODY>
        <H1>Submitting a Form</H1>
        <FORM NAME="form1" ACTION="basic.jsp" METHOD="POST">
            <INPUT TYPE="SUBMIT" VALUE="Click Me!">
        </FORM>
    </BODY>
</HTML>
<HTML>
    <HEAD>
        <TITLE>Back From the Server</TITLE>
    </HEAD>

    <BODY>
        <H1>Back From the Server</H1>
        You clicked the button!
    </BODY>
</HTML>
  Download:  HandleFormButtonAction.zip( 1 k)








23.16.Form Button
23.16.1.Using Form Button
23.16.2.Handle Form Button Action
23.16.3.Get Form Button Value
23.16.4.Using a Reset Button