We do support nested input modules
--
Leszek Gawron
first that long mail from smartphone
-----Original Message-----
From: "Ralph Goers"<[EMAIL PROTECTED]>
Sent: 04-11-04 18:09:07
To: "[EMAIL PROTECTED]"<[EMAIL PROTECTED]>
Cc:
Subject: Re: Getting a session attribute
He is doing that. What he is really unhappy with, I guess, is that he
would really like to just be able to do a substring operation on the
result of session-attr input module; like{session-attr:substring(key,1,3)}
or {jxpath:substring({session-attr:key},1,3}. It looks like the first
syntax would require that the session-attr input module extend jxpath
while the second requires nested input modules, which I don't believe we
support.
Ralph
Leszek Gawron said:
> Ralph Goers wrote:
>> One of my co-workers wants to use the session module to retrieve a
>> session
>> attribute. He does not want to use the session attribute module because
>> he
>> needs to do a substring on the returned value, which JXPath will let him
>> do. Unfortunately, we cannot figure out what syntax will successfully
>> return a session attribute from the session input module. Any ideas?
> Have you tried using JXPathMetaModule?
>
> http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/JXPathMetaModule.html
>
> Class description gives me an impression that this will work.
>
> --
> Leszek Gawron [EMAIL PROTECTED]
> Project Manager MobileBox sp. z o.o.
> +48 (61) 855 06 67 http://www.mobilebox.pl
> mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65
>