And where does your input stream come from?

On Tue, Jun 16, 2009 at 12:11 PM, PEGASUS84<pegasu...@hotmail.it> wrote:
>
> my action  is this:
> public class FileDownload extends ActionSupport {
>
>       InputStream inputStream;
>
>
>   public void setInputStream(InputStream s){inputStream=s;}
>   public InputStream getInputStream(){return inputStream;}
>
>   public String execute(){
>   return "sendFile";
>   }
> }
> and in Struts.xml i've this:
>
> <action name="fileDownload" class="action.FileDownload" >
>               <result name="sendFile" type="stream">
>               ${contentType}
>               </result>
>       </action>
>
> i wish to download a file
> --
> View this message in context: 
> http://www.nabble.com/download-file-tp24050039p24051377.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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

Reply via email to