http://developer.java.sun.com/developer/TechTips/1999/tt0216.html#tip1

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]] On Behalf Of
Henry Reardon
Sent: Wednesday, July 24, 2002 12:09 PM
To: [EMAIL PROTECTED]
Subject: Easy (?) Servlet Question


I think this should be easy to answer. I've spent HOURS looking in books
and online for this but I can't find it; maybe someone here can help....

I have successfully created a temporary file in the servlet temporary
directory. (In my case, the temporary directory is
c:/GuestbookServlet/work/guestbook and the temporary file is
EMCDL43828.zip.) I can see and open this file in the file system via
Windows Explorer, no problem.

I want to create a very simple HTML download page that includes a link
to that file. Can anyone tell me how to convert the system file path
into a URL for the purposes of my download page? I've played with
contextPath(), servletPath(), and other methods but none of them get me
the path to the temporary directory as an http:// URL....

Rhino

________________________________________________________________________
___
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