Thanks a lot, Doug, it worked.
> -----Original Message-----
> From: Doug Turner [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, November 22, 1999 1:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Bug in servlet program (still there)
>
> srvOut is defined twice: once at the class level, once as a local variable
> in doGet(...). You are initializing the local variable in doGet, but
> using
> the class variable (srvOut) in your printW(...) method. Since the class
> level version was never initialized, it has a value of null. My
> suggestion:
> pass srvOut as an argument to the methods that need it, and get rid of the
> class level version altogether. This will help you start addressing the
> errors Craig referred to.
>
> ----- Original Message -----
> From: RVASUDEV <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, November 20, 1999 5:28 AM
> Subject: Re: Bug in servlet program (still there)
>
>
> > > Hi,
> > > Still getting the NPE.
>
___________________________________________________________________________
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