Creating insertupdate.jsp page

Monday, February 22, 2010 Posted by Unknown
<%-- 
    Document   : index
    Author     : Jagadeesh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form method="post" action="ControllerServlet">
          <CENTER>
            <TABLE>
               <TR>
                 <TD>Name:</TD>
                 <TD>
                    <INPUT TYPE="text" NAME="userName">
                 </TD>
               </TR>
               <TR>
                 <TD>Date Of Birth:</TD>
                 <TD>
                    <INPUT TYPE="text" NAME="dateOfBirth">
                 </TD>
               </TR>
               <TR>
                 <TD>E-Mail</TD>
                 <TD>
                    <INPUT TYPE="text" NAME="email">
                 </TD>
               </TR>
               <TR>
                 <TD>Phone no:</TD>
                 <TD>
                    <INPUT TYPE="text" NAME="phoneNo">
                 </TD>
                </TR>
                <TR>
                  <TD colspan="2" align="center">
                    <INPUT TYPE="submit" value="submit" NAME="action>
                 </TD>
                </TR>
            </TABLE>
          </CENTER>
        </form>
    </body>
 </html>
if you run this form then following output will come



Creating project in netbeans                                                            Creating Servlet(Controller)
Labels:

Post a Comment