i put my csv file in /web folder. when user open browser, the entire content of
csv is displayed in browser. how to force download the file?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hi All,
I am following the recommendations at
http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=3132
while I download a file from a portlet. I include the request from portlet
to servlet using a PortletRequestDispatcher. But while rendering, portal
prints
Why not return an ILink from the listener ?
http://tapestry.apache.org/tapestry4.1/usersguide/listenermethods.html
Not sure about others, but I don't think this will work for
me. I'm generating a PDF inside my listener, which I then
wish to send to the client as a download. Any
Yep. That's exactly how I have done it in the past.
On 1/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Why not return an ILink from the listener ?
http://tapestry.apache.org/tapestry4.1/usersguide/listenermethods.html
Not sure about others, but I don't think this will work for
It would be nice if you could return Object from a listener and let
Tapestry figure it out. Having to pick between ILink and IPage at
compile time is a bit of a problem.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I am very intrested! Please share your code
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von James Carman
Gesendet: Mittwoch, 10. Januar 2007 02:32
An: Tapestry users
Betreff: Re: download a file
Let me know if Shing's example (it looks
02:32
An: Tapestry users
Betreff: Re: download a file
Let me know if Shing's example (it looks to be pretty good) isn't enough for you. The code I wrote
was for a client, but there's really not much clientness to it, so I could probably
share it. All it does is take image data out of a blob
book, but at the
moment we have no idea where to go to stop this exception.
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von James Carman
Gesendet: Mittwoch, 10. Januar 2007 14:42
An: Tapestry users
Betreff: Re: download a file
Shing's code didn't
Hi to all,
here's the problem: I have a file in my DB as a byte[] array and i want a
link to permit the user to download the file. First, I'm able to ricreate a
disk-version of the file using FileOutputStream, the file is good (I can
open it on the server) but is generated on request thus i can't
A custom Tapestry engine service ?
Shing
--- Edoardo Campagnano
[EMAIL PROTECTED] wrote:
Hi to all,
here's the problem: I have a file in my DB as a
byte[] array and i want a
link to permit the user to download the file. First,
I'm able to ricreate a
disk-version of the file using
@tapestry.apache.org
Betreff: download a file
Hi to all,
here's the problem: I have a file in my DB as a byte[] array and i want a
link to permit the user to download the file. First, I'm able to ricreate a
disk-version of the file using FileOutputStream, the file is good (I can
open it on the server
Here's a method that will do what you're asking:
// Tapestry 3
protected void download(IRequestCycle cycle, ByteArrayOutputStream content,
String contentType, String filename) throws IOException {
HttpServletResponse response = cycle.getRequestContext().getResponse();
Robert's Tapestry 3's method works, but Tapestry 4's method might cause
some problems, at least it did when I tried it. I believe it has to do
with closing the response outputstream before rewind or the rest of
rendering is complete. User will be able to download the file
successfully
or the rest of
rendering is complete. User will be able to download the file
successfully, but you'll see an error in your logs about OutputStream is
already closed (or something along those lines). To get around this
error, I had to implement my own download engine service, as Shing
suggested
James Carman wrote:
I did this by creating my own service in T4.
Have some code to share? I'm sure we'd all love to see it.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Robert J. Walker wrote:
James Carman wrote:
I did this by creating my own service in T4.
Have some code to share? I'm sure we'd all love to see it.
Shing has put up this nice page that details many such things
http://lombok.demon.co.uk/tapestry4Demo/app
16 matches
Mail list logo