>I tried that. The HttpServletRequest.getRealPath("/") returns the
>document root, i.e.
> /usr2/local/apache/htdocs
>The SevletContext.getRealPath("/") returns null. My servlet is located at
> /usr2/local/apache/servlets/development/MyServletDir
>
>Any other suggestions?
Take HttpServletRequest.getRealPath("/"), strip off the "htdocs" substring
and add "servlets/development/MyServletDir/". Perhaps that's too hard-coded
for your needs however.
Regards,
Steve Mann
-------------------------------------------
Creative Digital Publishing Inc.
1317 Palm Street, San Luis Obispo, CA 93401-3117
-------------------------------------------
805.788.0138 805.593.3811 (fax)
[EMAIL PROTECTED] http://www.cdpubs.com
___________________________________________________________________________
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