InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.2: Developing JSP files >
JSP code example - a login
JSP code example - a login
<HTML>
<HEAD>
<TITLE>JSP: Login into the Employee Records Center</TITLE>
</HEAD>
<BODY>
<H1><CENTER>Login into the Employee Records Center</CENTER></H1>
<FORM NAME="LoginForm" ACTION="employee.jsp"
METHOD="post" ENCODE="application/x-www-form-urlencoded">
<P>To login to the Employee Records Center, submit a valid
userid and password to access the Sample database installed under IBM DB2.</P>
<TABLE>
<TR VALIGN=TOP ALIGN=LEFT>
<TD><B><I>Userid:</I></B></TD>
<TD><INPUT TYPE="text" NAME="USERID" VALUE="userid"><BR></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD><B><I>Password:</I></B></TD>
<TD><INPUT TYPE="password" NAME="PASSWD" VALUE="password"></TD>
</TR>
</TABLE>
<INPUT TYPE="submit" NAME="Submit" VALUE="LOGIN">
</FORM>
<HR>
</BODY>
</HTML>
|
|
|