Thanks, Lance:

They are instantiated a couple of lines of code above my post and are
instantiated with the request parameters of their respective fields in the
JSP logon form.  Besides, if parmUserid or parmPW were null (or anything
other than id or pw, respectively), program flow would bypass the <if> and
no Strings would be set and passed back to my Controller servlet (I know, I
know...design flaw, but I'm trying to learn the patterns in "Core J2EE
Patterns" and haven't made my helper beans fully functional yet).

I just posted part of the NPE stack trace JRUN is returning; it is
JRUN-specific and I don't particularly feel like going through the JRUN API
to trace the exception when I know this should be working.  This is a real
puzzler.

Mark

----- Original Message -----
From: "Lance Lavandowska" <[EMAIL PROTECTED]>
Sent: Friday, December 28, 2001 12:06 AM


> I don't see you instantiating parmUserid or parmPW, but it would appear
> that is where the problem lies.
>
> Is there a specific line that you can attribute the NPE to?
>
> Lance
>
> > 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
> >
> >     if( parmUserid.equalsIgnoreCase( id) &&
> armPW.equalsIgnoreCase( pw))

___________________________________________________________________________
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

Reply via email to