You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Simone Bortolaso <bo...@softhome.net> on 2001/06/19 09:52:57 UTC
which is the problem?
The compilator say:
java.lang.Exception: XSP Java Compiler: Compilation failed for _index.java
2385: Undefined variable: u
xspExpr(formatDate(u,1,viewer),document)
.........................................
End the code is:
<xsp:logic>
<threshold>
<label>Thresholds:</label>
<date-header>Date</date-header>
<pre-alarm-header>Pre-alarm Threshold </pre-alarm-header>
<alarm-header>Alarm Threshold </alarm-header>
<xsp:content>
for(int u = 0; u < u++){
<value>
<date><xsp:expr>formatDate(u,1,viewer)</xsp:expr></date>
<pre-alarm><xsp:expr>formatDate(u,2,viewer)</xsp:expr></pre-alarm>
<alarm><xsp:expr>formatDate(u,3,viewer)</xsp:expr></alarm>
</value>
}
</xsp:content>
</threshold>
<xsp:logic>