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
;
> --
> 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
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
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
>
> 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.
>
>
> ---
}
}
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
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
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
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
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
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
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
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
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
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
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
return
ServletActionContext.getServletContext().getResourceAsStream(inputPath);
}
public String execute() throws Exception {
return SUCCESS;
}
}
__
Here is the element of my JSP:
dow
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
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
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
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
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
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
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
_
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
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
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
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
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
>
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
> -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
|
| cc:
|
| Subject: Brain fart - allowing user to download file
|
>-
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
40 matches
Mail list logo