force download csv file in /web/ folder

2008-09-04 Thread michael lim
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

How to download a file from portlet

2007-07-27 Thread Atanu
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

RE: AW: Re: AW: download a file

2007-01-16 Thread Marcus.Schulte
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

Re: AW: Re: AW: download a file

2007-01-16 Thread Jesse Kuhnert
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

Re: AW: Re: AW: download a file

2007-01-11 Thread Barry Books
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

AW: download a file

2007-01-10 Thread Holger Stolzenberg
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

Re: download a file

2007-01-10 Thread James Carman
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

Re: AW: download a file

2007-01-10 Thread Dennis Sinelnikov
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

download a file

2007-01-09 Thread Edoardo Campagnano
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

Re: download a file

2007-01-09 Thread Shing Hing Man
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

AW: download a file

2007-01-09 Thread Peter Schröder
@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

RE: download a file

2007-01-09 Thread Robert J. Walker
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();

Re: download a file

2007-01-09 Thread Dennis Sinelnikov
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

Re: download a file

2007-01-09 Thread James Carman
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

RE: download a file

2007-01-09 Thread Robert J. Walker
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]

Re: download a file

2007-01-09 Thread andyhot
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