Re: Problem with excel download file from Action (S 2.1.8)

2010-01-22 Thread Stephen Turner
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

Re: Problem with excel download file from Action (S 2.1.8)

2010-01-22 Thread Oscar Calderon
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

Re: Problem with excel download file from Action (S 2.1.8)

2010-01-22 Thread Dale Newfield
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

Re: Problem with excel download file from Action (S 2.1.8)

2010-01-22 Thread Stephen Turner
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

Re: Problem with excel download file from Action (S 2.1.8)

2010-01-22 Thread Dale Newfield
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

Re: Problem with excel download file from Action (S 2.1.8)

2010-01-21 Thread Oscar
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

Re: Problem with excel download file from Action (S 2.1.8)

2010-01-21 Thread Dale Newfield
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

Problem with excel download file from Action (S 2.1.8)

2010-01-21 Thread Oscar Calderon
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

Re: download file

2009-06-17 Thread Nils-Helge Garli Hegvik
; > -- > View this message in context: > http://www.nabble.com/download-file-tp24050039p24067967.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: u

Re: download file

2009-06-16 Thread PEGASUS84
thanks, now there is a problem in struts.xml: Can not find a java.io.InputStream with the name [${contentType}] in the invocation stack. Check the -- View this message in context: http://www.nabble.com/download-file-tp24050039p24067967.html Sent from the Struts - User mailing list archive

Re: download file

2009-06-16 Thread Dave Newton
PEGASUS84 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 "sendFi

Re: download file

2009-06-16 Thread Nils-Helge Garli Hegvik
  > > 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. > > > ---

Re: download file

2009-06-16 Thread PEGASUS84
} } and in Struts.xml i've this: ${contentType} 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 archiv

Re: download file

2009-06-16 Thread Nils-Helge Garli Hegvik
x27;t idea > -- > View this message in context: > http://www.nabble.com/download-file-tp24050039p24051122.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscrib

Re: download file

2009-06-16 Thread PEGASUS84
sorry, i don't succeed i haven't idea -- View this message in context: http://www.nabble.com/download-file-tp24050039p24051122.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscri

Re: download file

2009-06-16 Thread Paweł Wielgus
e ? > -- > View this message in context: > http://www.nabble.com/download-file-tp24050039p24050650.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user

Re: download file

2009-06-16 Thread PEGASUS84
Right it's really too much because i've not many packages that you've used. is there a more simple code ? -- View this message in context: http://www.nabble.com/download-file-tp24050039p24050650.html Sent from the Struts - User mailing list archiv

Re: download file

2009-06-16 Thread Paweł Wielgus
s to > download a file > -- > View this message in context: > http://www.nabble.com/download-file-tp24050039p24050039.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubsc

download file

2009-06-16 Thread PEGASUS84
please can anyone send me the cplete code to create an action which allows to download a file -- View this message in context: http://www.nabble.com/download-file-tp24050039p24050039.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts Download Action - renaming download file

2008-11-05 Thread Nils-Helge Garli Hegvik
I'm not sure if this is the same "DownloadAction" as you are thinking of, but I found this resource about setting the Content Disposition: http://wiki.apache.org/struts/StrutsFileDownload#head-54368bb2778429bd6d32b4ea42b2a15ca111f19a Nils-H On Wed, Nov 5, 2008 at 12:13 PM, Antonio <[EMAIL PROTEC

Re: Struts Download Action - renaming download file

2008-11-05 Thread Antonio
2008/11/5 Nils-Helge Garli Hegvik <[EMAIL PROTECTED]>: > Make sure you set the correct Content Disposition. That's the problem: it seems that there is no way to set the content disposition in the StreamInfo, or maybe I cannot see where it can be done. The StreamInfo interface provides only info ab

Re: Struts Download Action - renaming download file

2008-11-05 Thread Nils-Helge Garli Hegvik
lem I am having is that when I try > to download any of those file, operation which is done through the above > action, I get as download file name the name of the action (e.g. > downloadJar.do) instead of the file name. > > I have searched for documentation / examples on how to overc

Struts Download Action - renaming download file

2008-11-05 Thread Daniele Development-ML
Hello everybody, I have implemented a DownloadAction to control the access and to download some files in my web application. The problem I am having is that when I try to download any of those file, operation which is done through the above action, I get as download file name the name of the

download file problem

2007-10-29 Thread Dmitry Koprov
return ServletActionContext.getServletContext().getResourceAsStream(inputPath); } public String execute() throws Exception { return SUCCESS; } } __ Here is the element of my JSP: dow

Re: Download file from server and save on client

2006-09-11 Thread Hassan Schroeder
On 9/11/06, Dave Kennedy <[EMAIL PROTECTED]> wrote: I need to download a file from a server to client computer using Struts. I've implemented StrutsFileDownload from the Struts Wiki, but this displays the contents of the file http://wiki.apache.org/struts/StrutsFileDownload The answer is in the

Re: Download file from server and save on client

2006-09-11 Thread Thomas Joseph
author of the mail and delete the same. It doesn't matter how you were, but rather how you are that decides your future. A right attitude will get you to Success. - Original Message - From: Dave Kennedy To: user@struts.apache.org Sent: Monday, September 11

Re: Download file from server and save on client

2006-09-11 Thread Martin Gainty
rror, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Dave Kennedy" <[EMAIL PROTECTED]> To: Sent: Monday, September 11, 2006 3:22 AM Subject: Download file from serve

Download file from server and save on client

2006-09-11 Thread Dave Kennedy
I need to download a file from a server to client computer using Struts. I've implemented StrutsFileDownload from the Struts Wiki, but this displays the contents of the file http://wiki.apache.org/struts/StrutsFileDownload How can I save the file on the client drive instead of displaying the con

Re: upload/download file to/from oracle blob field with struts

2005-07-11 Thread EROL TEZCAN
Frank, I found a solution for it. Thanks, "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: I had to do this for an application. While the code is fairly lengthy, longer than I'd like to post here, if you come up against specific problems feel free to ping me. Although I didn't look at the a

Re: upload/download file to/from oracle blob field with struts

2005-07-11 Thread Frank W. Zammetti
I had to do this for an application. While the code is fairly lengthy, longer than I'd like to post here, if you come up against specific problems feel free to ping me. Although I didn't look at the article Martin referenced for you, it's a fairly generic problem, not something that you will

Re: upload/download file to/from oracle blob field with struts

2005-07-11 Thread Martin Gainty
ts_apache_user" Sent: Monday, July 11, 2005 9:32 AM Subject: upload/download file to/from oracle blob field with struts Hi, I want to upload/download a file to/from oracle blob field. How can I do this ? Please give an example code. Thanks, Erol _

upload/download file to/from oracle blob field with struts

2005-07-11 Thread EROL TEZCAN
Hi, I want to upload/download a file to/from oracle blob field. How can I do this ? Please give an example code. Thanks, Erol __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: how to download file (example)

2005-05-11 Thread Fco Javier Jiemnez
tType() sustitute the ContentType of the File part.getInputStream(); sustitute the Stream Data of the File. That's all! - Original Message - From: "Grzegorz Stasica" <[EMAIL PROTECTED]> To: Sent: Wednesday, May 11, 2005 9:30 PM Subject: Re: how to d

Re: how to download file (example)

2005-05-11 Thread Frank W. Zammetti
True... I would however be very willing to bet you can lift the DownloadAction class from 1.2.6 and drop it in 1.2.4 without any problem... As a matter of fact, although I'm not 100% certain, I think the sample app I wrote that you can grab off the Wiki is in fact using 1.2.4... heck, there's a cha

Re: how to download file (example)

2005-05-11 Thread Grzegorz Stasica
Frank W. Zammetti wrote: Hello, Do you want to use the Struts DownloadAction? If so, have a look here: http://wiki.apache.org/struts/StrutsFileDownload Even if you don't want to use it, you may find the example helpful, along with the source for DownloadAction, to help you along. Unfortunatelly I

Re: how to download file (example)

2005-05-11 Thread Frank W. Zammetti
r and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, May 11, 2005 2:30 pm, Grzegorz Stasica said: > hi, > > I'm looking for links/examples how to download file in struts action. In > action I have OutputStream but what header should I send and the most >

how to download file (example)

2005-05-11 Thread Grzegorz Stasica
hi, I'm looking for links/examples how to download file in struts action. In action I have OutputStream but what header should I send and the most important how the stram should be send to browser - To unsubscribe, e

RE: Brain fart - allowing user to download file

2004-08-03 Thread Jim Barrows
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, August 02, 2004 5:00 PM > To: Struts Users Mailing List > Subject: Re: Brain fart - allowing user to download file > > > > > > > > The usual suspects

Re: Brain fart - allowing user to download file

2004-08-02 Thread jthompson
| | cc: | | Subject: Brain fart - allowing user to download file | >-

Brain fart - allowing user to download file

2004-08-02 Thread Jim Barrows
Okay.. this is something so simple I'll probably shoot myself for missing it. file and the user should be able to just click and the blasted thing will download... only problem is user clicks and gets a 404 error. Set the mime-type in the web.xml. Running on Websphere 5.1. What am I forget