Are you trying to send the "raw" file content to the browser in order to
allow the users to save the file locally (download it), or are you trying to
display the file content "inside" an HTML page, with navigation links around
it, etc.?

If you want to send the raw content, take a look at extending Turbine's
RawScreen class. Search the mail archives
(http://www.mail-archive.com/turbine-user%40jakarta.apache.org/) for
"RawScreen".

If you are trying to display the file content inside an HTML page, is this
somehow different from displaying any other data in the page? We don't use
Velocity, but I would guess that you could use a Screen class to read the
file content and create a variable in the Velocity context that contains the
data. Then just have the corresponding .vm file that contains nothing but
that variable. Not sure if this makes sense, but it might be a start.

Kevin

-----Original Message-----
From: apdas [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 8:23 AM
To: Turbine User
Subject: How to access files


Hi friends,

I am interested in serving files on my server using turbine framework. I
want that my action will read the file byte by byte and send the out put
to the client to replace the $screen_placeholder.

Earlier I was using a servlet for serving files on my server. Now I want
incorporate the same using turbine.Please help me.

Regards,

A.P.Das.

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

Reply via email to