Hi,
I found the following the thread, and now I apply that method.
I think it is the best solution for this issue.(namely create custom Result
class)
http://www.mail-archive.com/user@struts.apache.org/msg79822.html
Thanks.
Ken
--- lunch...@yahoo.co.jp wrote:
> Hi Dale,
>
> Thank you for yo
Hi Dale,
Thank you for your reply.
It sounds I can make it, even though there might be some problems about
closing streams.
When I coded like the following, I could get the download file(i.e. I could
concatenate the ByteArrayInputStream objects.
)
Note.I must rely on SequenceInputStream refered
java.io.SequenceInputStream might prove helpful to you here, as well.
-Dale
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
a")
> >> 篠 篠 篠 篠
> >> 篠 篠 篠 篠 return new
> >> ByteArrayInputStream(sb.toString().getBytes("windows-1250"));
> >> }
> >>
> >> Best greetings,
> >> Pawe裘悉裘自賾� Wielgus.
> >>
> >>
> >> 2010/9/16
t;> 2010/9/16 Tommy Pham :
>> >
>> >> -----Original Message-----
>> >> From: lunch...@yahoo.co.jp [mailto:lunch...@yahoo.co.jp]
>> >> Sent: Wednesday, September 15, 2010 9:23 PM
>> >> To: Struts Users Mailing List
>> >&g
ch...@yahoo.co.jp]
> >> Sent: Wednesday, September 15, 2010 9:23 PM
> >> To: Struts Users Mailing List
> >> Subject: Re: How to download a file without creating it on a
> server
> >>
> >> Hi Dave and Allen,
> >>
> >>
est greetings,
Paweł Wielgus.
2010/9/16 Tommy Pham :
>
>> -Original Message-
>> From: lunch...@yahoo.co.jp [mailto:lunch...@yahoo.co.jp]
>> Sent: Wednesday, September 15, 2010 9:23 PM
>> To: Struts Users Mailing List
>> Subject: Re: How to download a file wi
> -Original Message-
> From: lunch...@yahoo.co.jp [mailto:lunch...@yahoo.co.jp]
> Sent: Wednesday, September 15, 2010 9:23 PM
> To: Struts Users Mailing List
> Subject: Re: How to download a file without creating it on a server
>
> Hi Dave and Allen,
>
>
Hi Dave and Allen,
Thank you for quick reply.
Frankly speaking, I'm not familiarity with using stream and could not come
up with some ideas.
When I coded with java.io.PipedInputStream/PipedOutputStream
like follwoing, I could download an empty file with IllegalStateException.
If anyone give an
Sometimes I'll create a temp file via File.createTempFile and open an
InputStream for that but you could just as easily use one of these
techniques:
http://ostermiller.org/convert_java_outputstream_inputstream.html
2010/9/15 :
> I would like to collect the data by accessing database and create t
On Wednesday, September 15, 2010, wrote:
> I would like to collect the data by accessing database and create the
> contents for a download file.
>
> Without creating the real file for InputStream that the struts2 convention
> proposes to use for download, how to code?
A stream is a stream-doesn't
I would like to collect the data by accessing database and create the
contents for a download file.
Without creating the real file for InputStream that the struts2 convention
proposes to use for download, how to code?
Regards.
--
Get the new Internet Explorer
12 matches
Mail list logo