Hi !
 
I'm trying to include a very basic XSP part to my pages, but if I insert a try-catch, I get this error message :
 

type fatal

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling test_2_xml: Line 66, column 2: illegal start of type Line 49, column 11: class org.apache.cocoon.www.docs.test.docs.test_2_xml should be declared abstract; it does not define method generate() in interface org.apache.cocoon.generation.Generator Line 0, column 0: 2 errors

Here is the source code :
 
<xsp:logic>
try
{
  public static String foo = "Hello";
}
catch(Exception e)
{
}
</xsp:logic>
 
It works without the try-catch structure... but doesn't with...
 
Could someone help me ? What is this method generate() ? How do I declare my xml file abstact ??? I'm lost...
 
Thank you,
Marty.
 
 
 

Reply via email to