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
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
Hi Wielgus,
Thank you for the example.
That example you provided can work fine.
But I'm afraid I can not apply this way.
When using ByteArrayInputStream, I need to hold all contents of a download
file.But I must handle a huge file that can not be placed in memory.
I'm sorry that I did not tell
Hi Pawel,
> But if this data has to be manipulated (concatenated, changed, etc.)
> the temporary file is needed if You don't want to put all data into
> memory.
FYI in my case, I need to manipulate with data from DB and files to create
a download file.
Thanks.
--- Pawe娼ネ Wielgus wrote:
> Hi,
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
Hi,
When I set a value in my interceptor,I could not get it in a jsp.
How to do that?
### my interceptor
public class HogeIntercepter extends AbstractInterceptor {
@Override
public String intercept(ActionInvocation invocation) throws Exception {
HttpServletRequest request = ServletA
Hi,
Thanks Li and Maurizio!
Here is the solution.
I really appreciate you guys because I spent a whole day for this problem.
Thanks a lot!
--- Maurizio Cucchiara wrote:
> This would work:
>
>
> Maurizio Cucchiara
>
--
Learn more about breast cancer
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
8 matches
Mail list logo