Thanks a lot.  It worked.  I'm still not sure what was wrong with my paths,
but it doesn't really matter anymore.
Thanks again.

Kevin

-----Original Message-----
From: Gopi Mandava [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 11:50 AM
To: [EMAIL PROTECTED]
Subject: Re: Directory format for java.io.File.isDirectory( )


Try:
         getServletConfig().getServletContext().getRealPath(yourdirname)

This gets the absolute path for documentRoot+yourdirname

>         While trying to use com.oreilly.servlet.MultipartRequest, I keep
>getting "Not a Directory" error messages.  The class takes the string
>containing my directory name and sets it to a new File object.  Then it
>calls the java.io.File.isDirectory( ) method on the File object.  This is
>when the exception is thrown.  Does anybody know the corrrect format for a
>directory on a Windows NT machine?  I was trying  "//<server_name>/https/".
>Thanks.
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


-----------
Gopi Mandava                            (703) 267-1735 x307
CoManage Inc.

"The world is more apt to be destroyed by bad politicians than bad physics"
- A.Einstein

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to