Try to use urls of this form:
http://server:port/servlet/FileServeServlet/fileName.ext
The "fileName.ext" string, with any directory prefixes after the servlet's
name ("FileServeServlet" ) can be retrieved using the
HttpServletRequest.getPathInfo() call.
Cezar.
"To err is human, to forgive, beyond the scope of the Operating System"
> ----- Original Message -----
> From: Alvaro Fuentes <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 10, 1999 2:13 PM
> Subject: Problem downloadind files.
>
>
> > We are developing a servlet that serves files from the server writing on
> > ServletOutputStream. The problem is that when the browser asks for the
> file's
> > name, the default is the servlet's name, not the file's name. How can we
> tell the
> > browser the file's name? Any header field? We are using
> > "application/octect-stream" as content-type.
> >
> > Thanks
> >
> >
> ___________________________________________________________________________
___________________________________________________________________________
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