cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Muja <mario.m...@delaval.com>
Subject Re: abstract class
Date Sat, 22 Sep 2001 07:31:30 GMT
Hi,
if your code allows to write the result of an XSP including ESQL 
statements to disk, then please, please, please send us a snapshot of 
the code and a short example, how it can be used.

Thank you very much for you help.

Mario


cib wrote:

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



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