You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Howard Moore <Ho...@borland.com> on 2004/07/13 21:50:57 UTC
Cocoon App: Need Forrest-ation
Greetings!
I've got several existing Cocoon applications.
How can I bring the Forrest docs I have generated
under my applications umbrella?
Example;
tomcat/webapps/cocoon/myapp/forrestdocs
I've tried creating a static site but cocoon seems to
have some problems with that. Also a complete
'webapp' build has way too much cocoon duplication.
Can you kind and brilliant folks tell me how to do
this? The easy way? :)
Thanks
Howard
Re: Cocoon App: Need Forrest-ation
Posted by David Crossley <cr...@apache.org>.
Thorsten Scherler wrote:
> Howard Moore wrote:
> >I've got several existing Cocoon applications.
> >
> >How can I bring the Forrest docs I have generated
> >under my applications umbrella?
> >Example;
> >tomcat/webapps/cocoon/myapp/forrestdocs
> >
> >I've tried creating a static site but cocoon seems to
> >have some problems with that.
>
> Can't you just use a reader for that! Should work like a charme!
Howard, what "problems" are you referring to.
Cocoon should be able to deal with any pre-prepared documents.
As Thorsten has said, you would add some "match" statements
to your cocoon/myapp/sitemap.xmap which deal with requests
for forrestdocs/**.html and pdf and css by using <map:read>
However, this does sound clumsy doesn't it. You need to
pre-generate the docs with Forrest then package them
into your Cocoon application, or use other tricks, such
as getting forrest to generate the static output straight
into the Cocoon webapp directory after Cocoon has started.
It sounds like what is really needed is a Cocoon Block
called "forrest".
We have talked about this before but not gone further.
The block would contain all of the bit-and-pieces that
forrest needs, such as sitemaps, skinconf, DTDs, the
skin stylesheets, and the few extra jars. It should not
need to supply any of the cocoon-related jars, which
i think is the problem of "too much duplication" that you
allude to below.
> >Also a complete 'webapp' build has way too much
> >cocoon duplication.
> >
> Do you want it in the same dir? Yeah that would not really work!
> Why not /forrest war/ and just link to the forrest docu from your cocoon
> site (2 independent site). Ok, you want to have it under your
> application umbrella.
>
> ...then just copy the extracted war into
>
> tomcat/webapps/cocoon/myapp/forrestdocs
>
> and tell cocoon to mout the sitemap.
You need 's/mout/mount/' of course.
> >Can you kind and brilliant folks tell me how to do
> >this? The easy way? :)
>
> I do not know whether that is the easy way, but it could be a way ;-)
You are entering new territory here Howard. It is
a place where we do want to go, however no-one has yet
put in the energy. We would be pleased to hear how you
go with some of those suggestions and what you think
about the Cocoon block idea.
--
David Crossley
Re: Cocoon App: Need Forrest-ation
Posted by Thorsten Scherler <th...@juntadeandalucia.es>.
Howard Moore wrote:
>Greetings!
>
>I've got several existing Cocoon applications.
>
>How can I bring the Forrest docs I have generated
>under my applications umbrella?
>Example;
>tomcat/webapps/cocoon/myapp/forrestdocs
>
>
>I've tried creating a static site but cocoon seems to
>have some problems with that.
>
???
Can't you just use a reader for that! Should work like a charme!
>Also a complete
>'webapp' build has way too much cocoon duplication.
>
>
>
Do you want it in the same dir? Yeah that would not really work!
Why not /forrest war/ and just link to the forrest docu from your cocoon
site (2 independent site). Ok, you want to have it under your
application umbrella.
...then just copy the extracted war into
tomcat/webapps/cocoon/myapp/forrestdocs
and tell cocoon to mout the sitemap.
>Can you kind and brilliant folks tell me how to do
>this? The easy way? :)
>
>
>
I do not know whether that is the easy way, but it could be a way ;-)
King regards
thorsten
>Thanks
>
>Howard
>
>
>
>
--
Thorsten Scherler
Departamento de Desarrollo de Proyectos
Sociedad Andaluza para el Desarrollo de la Sociedad de la Información S.A.U.
Avda. de la Arboleda s/n
41940 - Tomares, (Sevilla)
Tlfn: (+34) 955 062 627
e-mail: thorsten.scherler.ext@juntadeandalucia.es
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo,
contiene información de carácter confidencial exclusivamente dirigida a su
destinatario o destinatarios. Queda prohibida su divulgación, copia o
distribución a terceros sin la previa autorización escrita de "Sociedad
Andaluza para el Desarrollo de la Sociedad de la Información, S.A.U.". Si no
es Ud. el destinatario del mensaje le ruego lo destruya sin hacer copia
digital o física, comunicando a Sociedad Andaluza para el Desarrollo de la
Sociedad de la Información S.A.U. vía e-mail o fax la recepción del presente
mensaje. Toda declaración de voluntad contenida deberá ser tenida por no
producida. Gracias.
____________________________________________________________________________
___________________
The information in this e-mail and in any attachments is confidential and
solely for the attention and use of the named addressee(s). You are hereby
notified that any dissemination, distribution or copy of this communication
is prohibited without the prior written consent of "Sociedad Andaluza para
el Desarrollo de la Sociedad de la Información, S.A.U.". If you are not the
formal receiver of this message please destroy it without making any digital
or physical copy and inform "Sociedad Andaluza para el Desarrollo de la
Sociedad de la Información S.A.U." , by e-mail or fax, of the reception of
the present message. Any whatsoever involuntary declaration contained
herewith must be taken as having no legal effect. Thank you.