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:[EMAIL PROTECTED]]
Envoyé : vendredi 27 juillet 2001 12:27
À : [EMAIL PROTECTED]
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to