on 3/31/00 6:17 AM, Kevin Yancy <[EMAIL PROTECTED]> wrote:

> Is it possible to (easily) output document types other than
> HTML? For example, if for some of my pages I want to use an
> ECS XMLDocument class  to output XML rather than the default
> ECS Document class.

100% Yes. ;-)

data.getPage(). Don't call it from your Screen. Instead call data.getOut().

Then, don't return any information through your Screen. ie: at the bottom,
return null;

Essentially, data.getPage() will get you an ECS output stream and
data.getOut() will get you a HttpServletOutpuStream (as a PrintWriter) like
in a regular servlet.

Take a look at org.apache.turbine.modules.screens.ImageServer.java for an
example of serving binary image data through Turbine. FileServer.java is an
example of feeding text data through Turbine as well...

thanks,

-jon



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to