cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aurélien DEHAY ...@zorel.org>
Subject Database in flow/problem with jxpath
Date Sun, 12 Dec 2004 13:29:05 GMT
Hello.

I've got the following flow code:

function modifierContenu() {
     var conn = Database.getConnection("llinfo");
     var result = conn.query("SELECT * FROM people");
     var record = result.rows;
     conn.close();
     cocoon.sendPage("protected-test-2", {"record": record});
}

I've got the following jxpath file (called by the protected-test-2 
pipeline):

<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:c="http://apache.org/cocoon/templates/jx/1.0"  >
   <head>
     <title>Bienvenue dans la Batcave</title>
     <meta name="author" content="Aurélien DEHAY" />
     <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <c:forEach select="#{record}">
       <h1>-= #{login} =-</h1>
       <p>-= #{id} =-</p>
     </c:forEach>
   </body>
</html>

The #{login} and #{id} are not set to the corresponding values. It only 
works when I put the following thing:

<foo bar="#{login}" booh="#{id}"/> (i.e. the #{} are replace only when 
they are in a attribute).

I've tried to put a jx:out value="#{login}", which doesn't work either.

I'm using cocoon 2.1.6 on a Tomcat 5.0.28.

I someone could give me hints about this problem....
Rgds.
-- 
Aurélien

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message