cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "cib" <c....@laposte.net>
Subject abstract class
Date Sat, 22 Sep 2001 02:42:01 GMT
Hi,
Thanks to many of you I've got a base for saving the output from cocoon to a
file "output.txt" on my disk: still a little error message bothering me.

class org.apache.cocoon.www.pages.make1_xsp must be declared
abstract. It does not define void generate() from class
org.apache.cocoon.generation.AbstractGenerator

Unfortunately adding "abstract" before the class and the main declaration
didn't change anything. If someone could give me a hand on finding the
correct syntax for this.

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsp:page
          language="java"
          xmlns:xsp="http://apache.org/xsp"
          xmlns:esql="http://apache.org/cocoon/SQL/v2">

<xsp:structure>
  <xsp:include>java.io.*</xsp:include>
</xsp:structure>

<xsp:logic>
class make_xsl {
   public void main(String[]) throws IOException {
 FileReader entree = new
FileReader(("http//:localhost/cocoon/test/make.xsl"));
  FileWriter sortie = new FileWriter("output.txt");
 int c;
 while ( (c = entree.read()) != -1 )
sortie.write(c);
sortie.close();
entree.close();
     }
}
</xsp:logic>

  <page>

<xsp:logic>
    make_xsl anObject = new make_xsl();
    anObject.main();
</xsp:logic>


If you see this, it works.

  </page>
</xsp:page>

thanks for your clues.

Cib

France, Bordeaux, xml and gay pride.



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