My xsp - file compiles without any problems.

But as soon as I put a while or a for  loop inside the method  or
inside the <xsp:logic> - tag within the tag NAVIGATION my xsp file won't
compile anymore.
It seems that it's going into an infinite loop.

Did anybody else have that problem or at least a solution?


Best regards 

J. Schwarz





<?xml version="1.0" ?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp";>
   <xsp:structure>
      <xsp:include>java.util.*</xsp:include>
      
      <xsp:include>java.io.*</xsp:include>     
   </xsp:structure>
   
   <xsp:logic>   
               String fileName="";
        
        public File getFileName()
        {               
                fileName =
parameters.getParameter("fileName","unknown"); 
                File back=null;
                try {
                        back=new File(fileName);
                
                }
                catch (Exception e)
                { e.printStackTrace(); }
                
                return back;
        } 
   </xsp:logic>
   <NAVIGATION>
   <xsp:logic>
      for (int i=0;i<5;i++)
              ; //dosomething 
   </xsp:logic>
  </NAVIGATION>
  
</xsp:page>



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