struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Newfield <d...@newfield.org>
Subject Re: Struts newbie - Advice on file downloading
Date Wed, 13 May 2009 14:58:06 GMT
Richard Sayre wrote:
> <param name="contentDisposition">filename="Report.pdf"</param>

That is an invalid contentDisposition value.  We've recently fixed the 
documentation so that hopefully people will stop making this mistake.

If you want it displayed in the browser:
inline;filename="Report.pdf"
If you want the browser to save it:
attachment;filename="Report.pdf"

http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message