You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Fred Gerson <fr...@wrath.forked.net> on 2002/10/01 06:53:36 UTC
RE: How to server files
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/turbine-user@jakarta.apache.org/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/turbine-user@jakarta.apache.org/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: apdas@iitk.ac.in [mailto:apdas@iitk.ac.in]
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:apdas@iitk.ac.in]
> 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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail: <mailto:turbine-user-
unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:turbine-user-
help@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: DHTML with turbine
Posted by Scott Eade <se...@backstagetech.com.au>.
> From: "V S Balaji" <vs...@prodapt.com>
>
> I have a problem in executing DHTML code in my web application
> iam going to develop, any help is appreciated.
DHTML is a client side technology that is totally unrelated to turbine.
This is not the appropriate forum to seek help with regards to DHTML.
Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
DHTML with turbine
Posted by V S Balaji <vs...@prodapt.com>.
Hi,
I have a problem in executing DHTML code in my web application
iam going to develop, any help is appreciated.
Balaji
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>