On 9/11/06, Dave Kennedy <[EMAIL PROTECTED]> wrote:
I need to download a file from a server to client computer using Struts.
I've implemented StrutsFileDownload from the Struts Wiki, but this displays
the contents of the file
http://wiki.apache.org/struts/StrutsFileDownload
The answer is in the
Hi Dave,
Basically you have to set the content disposotion to "attachment"
eg..
//setting the content type to an arbitrary one, so to make browsers
//definitely download the file. Some browsers simply ignore download
//instruction and display the content once they know its cont
Mr Kennedy
Did you get a chance to look at ServletOutputStreamWrapper class?
http://struts.apache.org/2.x/struts2-core/apidocs/index.html
Here is a q&d example that uses it
http://rifers.org:8088/browse/~raw,r=3183/rifers/jhighlight/trunk/src/com/uwyn/jhighlight/servlet/HighlightFilter.java
Any
3 matches
Mail list logo