I have a strange problem with a really simple pipeline using jxtemplate
generator.
The pipeline is:
<map:match pattern="registereduser">
<map:generate type="jx" src="jx/login.jx">
<map:parameter name="username" value="{request-param:username}"/>
<map:parameter name="hostname" value="{request:remoteHost}"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
and the file login.jx is
<?xml version="1.0" encoding="UTF-8"?>
<jx:template xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
<authentication>
<ID>${cocoon.parameters['username']}</ID>
<data>${cocoon.parameters['hostname']}</data>
</authentication>
</jx:template>
I obtain always empty tags. I tried with fixed strings in the sitemap like
<map:parameter name="hostname" value="anystring"/>
and with different methods to access data in the jx file (JSTL and XPath
as I found in
http://wiki.apache.org/cocoon/JXTemplateGenerator?highlight=(jx)).
Accessing other cocoon objects (cocoon.request, for example) works right.
No useful information in the logs.
Cocoon version 2.1.10 on debian 4.0 with jdk 1.5.0_11.
Where is the mistake?
Thanks in advance
Alberto Brosich
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]