On Fri, 19 Nov 1999 15:09:35 +0100, Antonio Mancuso wrote:

>I need to know into my servlet which is the directory where is stored my
>servlet .class.

This code

        out.print("<strong>class path</strong>: ");
   out.print(test.class.getResource("test.class").toString());

gives you

        class path: file:E:\Programme\ApacheGroup\....\servlets\test.class

Such things are found in servlet tutorials and examples, btw. (hint)


Ciao, Juergen

___________________________________________________________________________
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