----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi, 

Servlets are sometimes picky on how you initialize them.  I had a similar
problem were I declared a class in the init() function, but would get a null
pointer when I tried to access it from anywhere else.  Here are some ideas:

1) You might be getting an exception thrown in the init() method that you
might not be catching, or handling properly.  Since servlets usually don't
write to the screen w/out setting the HTML tags first, you might not see it
happening.

or

2) For some reason you might be getting the same problem I was.  Try
declaring and initializing your classes inside the method that requieres
them instead than in the init() function.  If this works, then at least
you'll know where the problem is.


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to