I could be wrong but you may be experiencing some class loader issues.

since one call is in the static main and the other is from an instance.

won't know till you post more code.....

JM

> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology. [mailto:[EMAIL PROTECTED]]On
> Behalf Of Walt Black
> Sent: Saturday, May 18, 2002 1:14 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Why I can't find my file in servlet?
>
>
> Where's your PreReadError source, particularly the getTable()
> method and any
> methods called by getTable()? The error must be associated with
> the path to
> the file but I don't know how you specify it. Send source and
> we'll find the
> problem.
>
> On Friday 17 May 2002 09:59 pm, you wrote:
> >     out.println("<p> It's value is "+str+"</p>");
> >     ....
> >  }
> >
> > When I run GetUserIdentity,it should show:
> >   It's value is 3
> > But I got another result,it shows:
> >   It's value is null
> >
> > I put my files in follows:
> >   I use Apache Tomcat4.0 again,I install Apache Tomcat4.0 into
> D:\Program
> > Files\Apache Tomcat4.0 I put my class GetUserIdentity.class and
> > PreReadError.class into follows folds: I put them into D:\Program
> > Files\Apache Tomcat4.0\Webapps\examples\WEB-INF\classes
>
> __________________________________________________________________
> _________
> 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
>
>

___________________________________________________________________________
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