cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Wielgus <lis...@o2.pl>
Subject Re: Re: Including - another problem
Date Sun, 26 Oct 2003 13:02:12 GMT
>You include the xsp-Page as pure xml.. it hast to be compiled at
runtime
>because a xsp represents java-code. That's the job of the
>serverpage-generator. Aside from that, your call of the xsp with the
>"src"-Attribut searches for an matcher that matches
>"resource/content/header" in the current sitemap. If you want to
include
>static xml-content you can use the "resource:" protocol (see the
manual:
>sitemap) in the future. But because of you have to compile with the
>serverpage generator, do define a pipeline like this:
>
><map:match pattern="*.xsp">
>    <map:generate src="resources/content/{1}.xsp" type="serverpages"/>
>    <map:serialize type="xml"/>
></map:match>

I had already the pipeline in such form, and with serverpages
generator and nested in action-tags.

>Remember that this pipeline has to be in the "auth-protect"-Action
to have
>the authentication-Context! ;)
>
>The line in the main document would look like:
>
><cinclude:include src="cocoon:/header.xsp"/>

This line was exactly the problem! I simply added the "cocoon:/" to
the path in the "src" parameter and now it works :)

Thank you very much, you helped me again :))

Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message