struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: Struts2 - Generate XML in an Action, then direct user to download .xml
Date Wed, 13 Oct 2010 03:57:58 GMT
Which version of Struts?!

Stream result if Struts 2, handle the headers and return null if Struts 1.

On Tuesday, October 12, 2010, Grant Overby
<goverby@students.kennesaw.edu> wrote:
> I've generated some XML in an action, and I'd like to direct the user to
> download it. It should be have as if they clicked a link pointing to the
> dynamic xml, eg: ..../yourfile.xml .
>
> Any pointers on how to accomplish this?
>
> goverby@students.kennesaw.edu
>

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


Mime
View raw message