forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <>
Subject Re: write a file in forrest via sitemap
Date Tue, 03 Mar 2009 13:55:43 GMT
2009/3/2 Dr. Bhatia Praveen <>:
> Hello,
>  How can one use forrest (when running in say run), to write data into a
> file?

It's hard to answer such a general question, as Gavin says can you
provide more details.

In the meantime you can look at the note taking pluging in the
whiteboard. This enables a dispatcher contract that allows the user to
add a note field to a forrest page. In particular you should be
looking at org.apache.cocoon.transformation.SourceWritingTransformer
(see cocoon docs):

For example in the above plugin see input.xmap:

      <map:match pattern="noteTaking/do/addNote.xml">
        <map:generate type="request"/>
          <map:parameter name="notesFile"
        <map:transform type="write-source"/>
          <map:parameter name="use-request-parameters" value="true"/>
        <map:serialize type="xml-document"/>

Ross Gardler

OSS Watch - awareness and understanding of open source software
development and use in education

View raw message