struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burton Rhodes" <burtonrho...@gmail.com>
Subject Re: How to serve a data file to the user?
Date Fri, 05 Dec 2008 03:56:08 GMT
I figured it was an easy solution, just couldn't find the answer for
some reason.  Many thanks!

On Thu, Dec 4, 2008 at 9:23 PM, Dave Newton <newton.dave@yahoo.com> wrote:
> --- On Thu, 12/4/08, Burton Rhodes wrote:
>> I am trying to figure out how to serve a requested data file
>> to the user using struts 2.  The file repository on my disk
>> drive is obviously not a public folder, so I retrieve the file
>> in the action class... but I am confused as to how to send it
>> to the browser since all I can return from my action class is a
>> "result"... The result is of course mapped to a jsp file
>> ("displayFile.jsp" for example), but how do I tell display.jsp
>> to display the file output stream?
>
> http://struts.apache.org/2.x/docs/how-do-we-download-files-within-the-framework.html
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Mime
View raw message