cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Brosich <abros...@ogs.trieste.it>
Subject jxtemplate doesn't read pipeline parameters
Date Wed, 05 Sep 2007 09:18:36 GMT

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message