Hey Kevin, I was wondering if you could be so kind as to share how you chain your I/O streams in your implementation of the doOutput() method in your RawScreen class (particularly where you say "//open the file and write its content to responseStream" in http://www.mail-archive.com/[email protected]/msg07479.html). I've been trying to use RawScreen, but so far have had no luck.
Also, because RawScreen is infact a screen, should I be pointing the user to a template with the same name as my RawScreen subclass (like /template/Download.vm for a Download.class screen?) I've tried this but my browser downloads the file as Download.vm, not as the name of the file on my server, what am I missing? Also also, what should I return from getContentType() to indicate downloading any arbitrary file type? Thanks so much, Fred From: Kevin Rutherford Subject: RE: How to server files Date: Mon, 30 Sep 2002 09:29:14 -0700 RawScreen is a Turbine class that can be extended to implement file downloads. You have to override the getContentType() and doOutput() methods to make your new class do what you want. In my response to your question last Friday, I included a link to the Turbine mail archives (http://www.mail-archive.com/turbine-user%40jakarta.apache.org/), and suggested that you search it for the term "RawScreen". Here is one example of what you will find: http://www.mail-archive.com/[email protected]/msg07479.html Reading these emails may help explain what RawScreen is, and how to extend it. It is also very helpful to study the Turbine source code itself, because not everything can be figured out by looking at the documentation. Hope this helps. Kevin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 10:30 AM To: Turbine Users List Subject: RE: How to server files Hi , Thanks for the tip. But Could you please elaborate how to use raw screen ? I am really very new to turbine. Regards, A.P.Das. > Use rawscreen. I do that for PDF files. > > -----Original Message----- > From: apdas [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 30, 2002 11:03 AM > To: Turbine User > Subject: How to server files > > > Hi friends, > > I want to read files on my server byte by byte and send the data to the > client to replace $screen_placeholder. > > Please suggest some tips. > Regards, > > A.P.Das. > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:turbine-user- [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:turbine-user- [EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
