<jsp:useBean id="upd" class="UserDBProp" scope="session"/>
<jsp:setProperty name="upd" property="dir" value="c:/tmp"/>
<% 
  boolean err=false;
  if (request.getParameter("uid")!=null)  {
  upd.setUser(request.getParameter("uid"));
  if (upd.load(request.getParameter("pw"))) {
    response.sendRedirect("updhome.jsp");
  } else {
    err=true;
  }
 }
%>

<HTML>
<HEAD><TITLE>Please log in</TITLE>
</HEAD>
<BODY BGCOLOR="cornsilk">

<% if (err)
   out.print("<FONT COLOR=RED>Invalid ID or password. Please try again</FONT><BR>"); 
%>
<TABLE>
<FORM METHOD=POST ACTION=updlogin.jsp>
<TR><TD>
UserID: </TD><TD><INPUT NAME=uid></TD></TR>
<TR><TD>
Password:</TD><TD> <INPUT NAME=pw TYPE=PASSWORD></TD></TR>
<TR><TD>&nbsp;</TD><TD>
<INPUT TYPE=SUBMIT VALUE="Login"></TD></TR>
</FORM>
</TABLE>
<BR><A HREF=updcreate.jsp>Need a user ID?</A>
</BODY></HTML>
