I still don't get it, so I'll step through my
assumptions:
Filip Zalewski wrote:
>
> Once the file transfer is complete,
>
Once the file is transferred from the "secure" area
on your server over to an area on your server where
your web-server can see it and thus serve it?
> we send a response.sendRedirect(filename).
>
So, in response to the redirect, the user's web
browser issues an HTTP GET to your web server, and the
web server reads the file and sends it back to the
user's web browser? But the web server is just sending
back a sequence of bytes in response to a request, and
your servlet can do exactly the same thing.
> At this point, the file is handling client side
> by the browser, the content disposition is no longer
> pre-determined, but handled depending on the users
> MIME settings.
>
Ok, what I'm suggesting is that if your normal web
server can serve the file, your servlet can serve the
file in exactly the same way. In other words, the
user's browser has no way to know whether the file is
being served by a servlet, or by Apache, or by
whatever. So figure out exactly what headers your
normal web server is using, and then add those to
your servlet.
You say: 'the handling depends on the user's mime
settings', but (normally, IE is flakey) the browser
uses the content-type header to determine the mime
type of the document. Are you setting the content
type header from your servlet?
Or maybe I'm still misunderstanding the problem...
--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.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