cocoon-users mailing list archives

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

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;
     cocoon.sendPage("protected-test-2", {"record": record});

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

<html xmlns=""
       xmlns:c=""  >
     <title>Bienvenue dans la Batcave</title>
     <meta name="author" content="Aurélien DEHAY" />
     <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
     <c:forEach select="#{record}">
       <h1>-= #{login} =-</h1>
       <p>-= #{id} =-</p>

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....

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message