> > Can anybody give me a clue as to why I am getting null pointer
exceptions
> > when I access userID, password, or minit from a JSP page but not fname,
> > lname or accesslevel?
> >
> > while( rs.next()) {
> > String id = rs.getString( 1); file://get userID (email address)
> > String pw = rs.getString( 2); file://get password
check attribute befire use
if (id!=null && id.length()>0 && pw!=null && pw.length()>0){
if (id.equals("user") && pw.equals("password")){
System.out.println("WELCOME");
}
}
Yuriy
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html