oops.. it will only ever evaluate to 'false'

OK, lets rephrase or question:

How can I setup an input-module in coocon.xconf that will allow SOMETHING
like this:

{jxpath:contains(string({request-header:X-Requested-With}) ,
'XMLHttpRequest')}

--> returns true or false

WARNING: I do NOT understand anything of this doc:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/AbstractJXPathModule.html

please help!





dynnamitt wrote:
> 
> 
>  Is there any way I can make this "EXPRESSION" any shorter:
> {session:contains(string({request-header:X-Requested-With}),'XMLHttpRequest')}
> 
> It should return 'true' or 'false'
> 
> gosh thats ugly...
> 

-- 
View this message in context: 
http://www.nabble.com/ajax-sniffer-in-xmap-tp19687789p19720400.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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

Reply via email to