put the file in ./WEB-INF/classes and open it like this

Thread.currentThread().getContextClassLoader().getResourceAsStream("myservle
t.conf");

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net
-----Original Message-----
From: Wang, Yuhui [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 11:25 AM
To: '[EMAIL PROTECTED]'
Subject: RE: servlet problem


Also, if I try to open a file in my servlet code, like

File myfile = new File("myservlet.conf");

where should I put the file?


Yuhui Wang
-----Original Message-----
From: JULIEN,TIMOTHY (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 11:54 AM
To: '[EMAIL PROTECTED]'
Subject: RE: servlet problem


that example may be protected with a
<user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee> <!-- or
INTEGRAL -->
</user-data-constraint>

check WEB-INF/web.xml

Tim Julien
HP Middleware

-----Original Message-----
From: Wang, Yuhui [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 11:40 AM
To: '[EMAIL PROTECTED]'
Subject: servlet problem


Hello,

I have written a servlet and put it in the webapps/examples/WEB-INF/classes
directory with other example servlets.  When I try to access it with a web
browser, I got "SSL required to access this page".  And I have not problem
access other examples in the same directory.  Can anyone help me out with
this one?

Yuhui Wang
Software Analyst
[EMAIL PROTECTED]

Reply via email to