xsp while - for loop

2001-12-18 Thread Johannes Schwarz

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:includejava.util.*/xsp:include
  
  xsp:includejava.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;i5;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]




Re: xsp while - for loop

2001-12-18 Thread Giacomo Pati

Quoting Johannes Schwarz [EMAIL PROTECTED]:

 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:includejava.util.*/xsp:include
   
   xsp:includejava.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;i5;i++)
 ^^^
Try using 

for (int i=0;i lt; 5;i++)

as although it looks like java it is handled like xml and thus you have to use 
entities for ,  and .

Giacomo


   ; //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]
 
 
 

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