> 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

Sounds like perhaps you got it running, but my point was that unless you were 
particularly careful, the <if> statement itself could be throwing a NPE:
if (parmUserid != null && parmUserid.equals(id) ... )
would be the safe way to do that check.

Or ensure that parmUserid was not set to null earlier:
String parmUserid = request.getParameter("userid");
if (parmUserid == null) parmUserid = ""; // or something useful

Lance

___________________________________________________________________________
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