cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@informatik.tu-darmstadt.de>
Subject Re: JXPathMetaModule configuration and sample use for function, package
Date Wed, 18 Feb 2004 15:02:10 GMT
Roman Hrivik wrote:

> Hi
> 
> Does anyone uses JXPathMetaModule with function or package parameter ?
> 
> I have this in my cocoon.xconf :
> <component-instance 
>  
> class="org.apache.cocoon.components.modules.input.JXPathMetaModule" 
>        logger="core.modules.input.utils" name="utils">
> 
> 
>    <package name="my.own.package" prefix="ldaputil"/>
> 
> </component-instance>
> 
> 
> I tried to use this module in sitemap like this
> <map:parameter name="maindn"
> value="{utils:ldaputil.DNHelper.getFirstEntry({chain:dn})}"></map:parame
> ter>
> 
> 
> 
> 
> 
> but nothing was working
> it seems that this module is always looking in 'request-attr' module
> what is wrong ?
> can anybody point me to right direction ?

Pls see javadocs for module. A meta module works on the output of
another module which you haven't specified in your declaration. Thus the 
default, "request-attr" is used.
You cannot nest modules in your sitemap. See InputModuleAction javadocs
for a possible solution.

	Chris.



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


Mime
View raw message