On Fri, 22 Jan 2010 10:33:25 -0500, Dale Newfield
wrote:
Disposition means "OK, what do I do with this thing?" If the answer is
"save it", THEN the question of "as what?" arises. Stating the filename
without first answering the "display it inline" vs. "save it" question
is ambiguous and not
Thanks for the aclaration, really i didn't realize about the struts
documentation's version.I imagine that the better is to add the
"attachment " to avoid problems.
El 1/22/2010 9:33 AM, Dale Newfield escribió:
Stephen Turner wrote:
Oscar's syntax is described in the Struts docs:
http://strut
Stephen Turner wrote:
Oscar's syntax is described in the Struts docs:
http://struts.apache.org/2.0.8/docs/stream-result.html
It's been updated in
http://struts.apache.org/2.1.8.1/docs/stream-result.html
Too bad the docs are versioned like that so that bad documents don't "go
away" once they'v
On Fri, 22 Jan 2010 09:59:52 -0500, Dale Newfield
wrote:
Glad you were able to get that working.
Where did you find the documentation that suggested this part of your
stream result?
Oscar wrote:
filename="nameoffile.xls"
The filename can also be specified, but the only valid
"content
Glad you were able to get that working.
Where did you find the documentation that suggested this part of your
stream result?
Oscar wrote:
filename="nameoffile.xls"
The filename can also be specified, but the only valid
"contentDisposition" values are "inline" or "attachment".
So you wa
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:
application/vnd.ms-excel
nameOfInputStreamFieldFromYourAction
filename="nameoffile.xls"
1024
2010/1/21 Dale Newfi
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 s
Hi to all, i wanna ask you a question about downloading files from
struts action. Actually i'm working on application that has some
jasperreports, where by default my action prints as PDF, and it works
fine, but now i'm trying to serve an excel file, so i'm using the next code:
byte[] arrStrea
8 matches
Mail list logo