OK I put chain module to cocoon.xconf

    <component-instance
 
class="org.apache.cocoon.components.modules.input.JXPathMetaModule" 
             logger="core.modules.input.utils" name="jxpath">
                
            <input-module name="chain"/>

                <function name="java.lang.String" prefix="str"/>

                <package name="java.util" prefix="util"/>
    </component-instance>

in chain module is always string attribute "dn" ()
    <component-instance 
 
class="org.apache.cocoon.components.modules.input.ChainMetaModule" 
       logger="core.modules.input" 
       name="chain">
      <input-module name="request-param"/>
      <input-module name="request-attr"/>
      <input-module name="session-attr"/>
      <input-module name="defaults"/>
</component-instance>

so how can I access to length of the string in dn attribute ?
the example str:length(dn) do not work

Roman






-----Original Message-----
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 18, 2004 4:02 PM
To: [EMAIL PROTECTED]
Subject: Re: JXPathMetaModule configuration and sample use for function,
package

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to