When I did it through content-disposition, it looked strange: First, IE 5.5
displays message "What do you want to do with this file: open/save", and
there were incorrect name like downloader.jsp?id=123456
but after save or open it behaved correctly: displayed as correct *.gif
image or saved with name xxx.gif (specified in Content-... header).
I suppose this can be implemented using server mapping. Instead of
downloader.jsp?id=123456
you should write a servlet what will be mapped by JRun, e.g. when server
gets an URL
http:\\hostname\download\123456\xxx.gif
then JRun will treat it like servlet with parameter
http:\\hostname\servlet\downloader?\123456\xxx.gif
I think this will fix the problem.
Regards,
Vitaly Shorin.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 27, 2000 8:58 PM
Subject: RE: Re: Changing name of document to be downloaded
> User is downloading a file that is sent through the jsp file due to
security reasons.
>
> Travis
>
> ---- Original Message ----
> From: [EMAIL PROTECTED]
> Sent: 2000-11-27 09:54:00.0
> To: JRun-Talk <[EMAIL PROTECTED]>
> Subject: RE: Re: Changing name of document to be downloaded
>
>
> I don't quit understand the question. Is the user uploading a file or
> downloading a file?
>
> Adam
>
>
>
> travis@thinkv
> irtual.com To: JRun-Talk
<[EMAIL PROTECTED]>
> cc:
> 11/27/00 Subject: Changing name of
document to be downloaded
> 10:26 AM
> Please
> respond to
> jrun-talk
>
>
>
>
>
>
> I have a document store where the documents are served through a servlet
> for security purposes, but the problem is that when the user saves the
> document, the document is called something along the lines of
>
> file_upload.jsp?file_id=23113
>
> And the user has to rename it to whatever.doc or whatever the document
> happens to be.
>
> So how could I make it so that the file is sent as:
> whatever.doc?
>
> Travis Reeder
> Chief Software Architect
> www.ThinkVirtual.com
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Your ad could be here. Monies from ads go to support these lists and
> provide more resources for the community.
> http://www.fusionauthority.com/ads.cfm
>
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Your ad could be here. Monies from ads go to support these lists and
provide more resources for the community.
http://www.fusionauthority.com/ads.cfm
>
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Your ad could be here. Monies from ads go to support these lists and
provide more resources for the community.
http://www.fusionauthority.com/ads.cfm
>
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists