cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: abstract class
Date Sat, 22 Sep 2001 08:03:25 GMT
Cib,

I'd really appreciate it if you'd care to read me responses and don't
post the same question over and over.

If you change your code the code as indicated it compiles OK.

On 22.Sep.2001 -- 04:42 AM, cib wrote:
> <?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(        ) throws IOException {
// before:    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>

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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