You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Leszek Gawron <ou...@kompuart.pl> on 2002/05/08 00:05:03 UTC
context
Hi,
how can I set context related to sitemap ? I mean in main sitemap.xmap file I
have :
<map:match pattern="ouzo/**">
<map:mount uri-prefix="ouzo" src="ouzo/" check-reload="yes" reload-method="synchron"/>
</map:match>
in mounted subsitemap I have:
<map:match pattern="login">
<map:act type="form-validator">
<map:parameter name="descriptor"
value="context://ouzo/descriptors/login.xml"/>
<map:parameter name="validate-set" value="login-info"/>
<map:act type="db-authenticator">
<map:parameter name="descriptor"
value="context://ouzo/descriptors/logindb.xml"/>
<map:redirect-to uri="protected/forms/main"/>
</map:act>
<map:generate type="serverpages" src="docs/login.xsp"/>
<map:transform src="stylesheets/page2html.xsl"/>
<map:serialize/>
</map:act>
<map:generate type="serverpages" src="docs/login.xsp"/>
<map:transform src="stylesheets/page2html.xsl"/>
<map:serialize/>
</map:match>
the thing is I do not want to use absolute context ( i.e.
context://ouzo/descriptors/login.xml) but the one related to subsitemap so
descriptors/login.xml
how can I do it ? I still do not completely understand all cocoon protocols
thanks for help
ouzo
--
------------------------------------------------------ ouzo@vip.net.pl
Leszek Gawron ICQ# 19681190
Software development & SE consulting Mobile +48 (608) 23 74 55
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: context
Posted by Leszek Gawron <ou...@kompuart.pl>.
> > value="context://ouzo/descriptors/login.xml"/>
>
> value="descriptors/login.xml"/>
huh ... really too much work today really
thanks for that
ouzo
--
------------------------------------------------------ ouzo@vip.net.pl
Leszek Gawron ICQ# 19681190
Software development & SE consulting Mobile +48 (608) 23 74 55
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: context
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Leszek Gawron [mailto:ouzo@kompuart.pl]
>
> Hi,
> how can I set context related to sitemap ? I mean in main sitemap.xmap
file I
> have :
> <map:match pattern="ouzo/**">
> <map:mount uri-prefix="ouzo" src="ouzo/" check-reload="yes" reload-
> method="synchron"/>
> </map:match>
>
> in mounted subsitemap I have:
> <map:match pattern="login">
> <map:act type="form-validator">
> <map:parameter name="descriptor"
> value="context://ouzo/descriptors/login.xml"/>
value="descriptors/login.xml"/>
> <map:parameter name="validate-set" value="login-info"/>
> <map:act type="db-authenticator">
> <map:parameter name="descriptor"
>
value="context://ouzo/descriptors/logindb.xml"/>
value="descriptors/logindb.xml"/>
> <map:redirect-to uri="protected/forms/main"/>
> </map:act>
> <map:generate type="serverpages" src="docs/login.xsp"/>
> <map:transform src="stylesheets/page2html.xsl"/>
> <map:serialize/>
> </map:act>
> <map:generate type="serverpages" src="docs/login.xsp"/>
> <map:transform src="stylesheets/page2html.xsl"/>
> <map:serialize/>
> </map:match>
>
> the thing is I do not want to use absolute context ( i.e.
> context://ouzo/descriptors/login.xml) but the one related to
subsitemap so
> descriptors/login.xml
>
> how can I do it ? I still do not completely understand all cocoon
protocols
See above.
Vadim
>
> thanks for help
> ouzo
> --
> ------------------------------------------------------ ouzo@vip.net.pl
> Leszek Gawron ICQ# 19681190
> Software development & SE consulting Mobile +48 (608) 23 74 55
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>