Thanks Dale. I searched a little bit about it and i solve the problem creating a InputStream field in my action, then adding a stream result type as you said, like this:
<result name="xlsRep" type="stream"> <param name="contentType">application/vnd.ms-excel</param> <param name="inputName">nameOfInputStreamFieldFromYourAction</param> <param name="contentDisposition">filename="nameoffile.xls"</param> <param name="bufferSize">1024</param> </result> 2010/1/21 Dale Newfield <d...@newfield.org> > Oscar Calderon wrote: > >> a question about downloading files from struts action. >> > > I would suggest using the stream result type rather than hand-constructing > the servlet response. In either case, though, you want to look into the > "contentDisposition" result parameter. Probably you want a value something > like 'attachment;filename="foo.xls"' > > -Dale > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Oscar