I've only tried this with perl, but I would imagine the same will work
with servlets:

call the servlet using additional PathInfo equal to the filename you want.
If you are using a link to get to FileServlet, then you can dynamically
set the link url however you wish.

Ex: http://www.domain.com/servlet/FileServlet/file09_10_99.zip

Most browsers will use the "filename" at the end of the url as the default
filename for a download.

Likewise, using a form GET, you can set the target to the example url
above.
If you are using a form POST, I don't have any ideas.

Lance Lavandowska
Software Engineer
http://www.AgDomain.Com

-----Original Message-----
From: Maciej Dybala <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, September 10, 1999 4:55 AM


>Hello Everybody ,
>  I have got a little problem:
>        - having a Servlet(e.g. FileServlet) which is supposed to send
binary files(e.g. *.zip files)
>                - how to perform an opperetion  that its result will be a
saved file on the client side
>                  which name will be File01.zip and not FileServlet.zip)
>                - of course we can use alias but what we can do if the
name of the file
>                      should dynamically change depanding on  the current
date and time?
>        Any help will be appreciated!
>Maciej Dybala
>
>
>_________________________________________________________________________
__
>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