cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JEULIN Olivier <olivier.jeu...@xml-ais.com>
Subject RE: C1: problem with FOR STATEMENT
Date Fri, 27 Jul 2001 11:29:00 GMT
Take a look at the generated java file around the line 6735: you will
probably see that part of your code is interpreted as text (-> put in a text
node!).
Surround your code with another <xsp:logic> inside <subsection>

-----Message d'origine-----
De : Simone Bortolaso [mailto:bortolaso@softhome.net]
Envoyé : vendredi 27 juillet 2001 12:27
À : cocoon-users@xml.apache.org
Objet : C1: problem with FOR STATEMENT


Why cocoon take this error 
    Java.lang.Exception: XSP Java Compiler: Compilation failled for
_myindex.java
    6735: Undefined variable: numcurves
    xspExpr(numcurves,document)   

in the nested statement:


         <xsp:logic>        

           <xsp:content> 
            for(int subsection = 0; subsection &lt; 2; subsection++){
                   <subsection
path="http://pc000450:8080/sla/images/indent15x15.gif">
 
<label><xsp:expr>viewer.getSubSectionLabel(subsection,u)</xsp:expr></label>

                         int numTotReport =
viewer.getNumReport(subsection,u);
                         for( int numreport = 0; numreport &lt; numTotReport
; numreport++){                           
                              int numTotCurves =
viewer.getNumCurves(subsection,u,numreport);                   
                              for(int numcurves = 0; numTotCurves &lt; 2;
numcurves++){                      
                                   <graph height="300" width="570" name= ""
path="http://pc000450:8080/sla/servlet/otdr?id=">       
                                      <label>OTDR trace</label>
 
<periodId><xsp:expr>u</xsp:expr></periodId>
 
<curveId><xsp:expr>numcurves</xsp:expr></curveId>
                                      <type></type>
                                  </graph> 
                              } 
                          <report></report>  
                         } 
                 </subsection> 
              } 
         </xsp:content>  
</xsp:logic>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message