You should import the java.io.* class in your XSP 

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

and use the classical java function 

BufferedReader in = new BufferedReader;
new FileReader(filefrom));
  while ((str = in.readLine()) != null)
{
}

Hope this could help

Patrick

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la
part de Tim Larson
Envoye : jeudi 18 mars 2004 21:51
A : [EMAIL PROTECTED]
Objet : InputSource -> String?


Does cocoon have any facility to convert an InputModule to a String?
The context is that I want to edit a text (not XML) file by loading it
from a Source into a CForms Field widget rendered as a HTML textarea.

I hate rewriting/debugging code that many others have already written.
I see org.apache.commons.io.IOUtils is not included in Cocoon, so is
there another easy option included?

--Tim Larson

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to