It is somewhat trivial. You use the Stream result type ->

On Thu, 2008-12-04 at 21:02 -0600, 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?
> 
> Many thanks!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to