I'm not sure if this is the same "DownloadAction" as you are thinking
of, but I found this resource about setting the Content Disposition:
http://wiki.apache.org/struts/StrutsFileDownload#head-54368bb2778429bd6d32b4ea42b2a15ca111f19a
Nils-H
On Wed, Nov 5, 2008 at 12:13 PM, Antonio <[EMAIL PROTEC
2008/11/5 Nils-Helge Garli Hegvik <[EMAIL PROTECTED]>:
> Make sure you set the correct Content Disposition.
That's the problem: it seems that there is no way to set the content
disposition in the StreamInfo, or maybe I cannot see where it can be
done.
The StreamInfo interface provides only info ab
Make sure you set the correct Content Disposition.
Nils-H
On Wed, Nov 5, 2008 at 11:55 AM, Daniele Development-ML
<[EMAIL PROTECTED]> wrote:
> Hello everybody,
> I have implemented a DownloadAction to control the access and to download
> some files in my web application. The problem I am having i
Hello everybody,
I have implemented a DownloadAction to control the access and to download
some files in my web application. The problem I am having is that when I try
to download any of those file, operation which is done through the above
action, I get as download file name the name of the action
You'll want to do set a header in your response like this:
response.setHeader("Content-Disposition","attachment; filename="+fileName);
HTH
Collin
sudip shrestha wrote:
I have a struts action that downloads binary files from the database: e.g.:
/actions/download.do?fileId=xxx, etc
So, wh
sudip shrestha wrote:
I have a struts action that downloads binary files from the database: e.g.:
/actions/download.do?fileId=xxx, etc
So, whenever users download any type of file with any id, the name of the
file displayed on any browser is "download.do",
is it possible to set something in
I have a struts action that downloads binary files from the database: e.g.:
/actions/download.do?fileId=xxx, etc
So, whenever users download any type of file with any id, the name of the
file displayed on any browser is "download.do",
is it possible to set something in the response, so that I c
Users Mailing List
Subject: Re: Struts Download Action
That's good info... might be worth adding to the Wiki (hint-hint :) )
Also, I don't think there is anything to stop you from using the
DownloadAction in Struts prior to 1.2.6 when, IIRC, it was added. I
could be wrong, but I don'
PROTECTED]
Sent: Monday, August 22, 2005 5:16 AM
To: Struts Users Mailing List
Subject: Re: Struts Download Action
That's good info... might be worth adding to the Wiki (hint-hint :) )
Also, I don't think there is anything to stop you from using the
DownloadAction in Struts prior to 1.2.6
That's good info... might be worth adding to the Wiki (hint-hint :) )
Also, I don't think there is anything to stop you from using the
DownloadAction in Struts prior to 1.2.6 when, IIRC, it was added. I
could be wrong, but I don't remember anything that would make that not work.
Frank
Sudha
http://wiki.apache.org/struts/StrutsFileDownload is great, but in case
you are using struts older than 1.2.6...
You just return null from execute method, framework will not do any
thing further. Now it is your responsibility to read the target file,
set correct content-type and then write the cont
leDownload
Martin-
- Original Message - From: "Frank W. Zammetti"
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, August 21, 2005 10:08 AM
Subject: Re: Struts Download Action
I can't seem to access the Wiki right no
I can't seem to access the Wiki right now to give you an exact link, but
if you search for DownloadAction there, you will find a page that
includes a sample app I wrote to demonstrate using the action. It shows
downloading a file on the file system and also from a database, if that
is relevant
I have used a straight servlet to download a blob from a database
using a URL like this:
http://someserver/documents/123/file.pdf
I did it this way instead of using struts because IE is a pile of crap. :-)
In this URL, the /123/ is the record's id, and file.pdf is the
suggested extension for the
Hi All,
I'm developing a web application based on Struts. In this, one of the
features to be included is , to download a file, when the user clicks on
the link in the JSP page.
Also, when the user clicks on the link, the Save/Open dialog box should
appear.
If nyone has used the DownloadAction pr
15 matches
Mail list logo