cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Montier Patrick" <patr...@montier.com>
Subject RE: InputSource -> String?
Date Thu, 18 Mar 2004 20:54:55 GMT
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 : users-return-64767-patrick=montier.com@cocoon.apache.org
[mailto:users-return-64767-patrick=montier.com@cocoon.apache.org]De la
part de Tim Larson
Envoye : jeudi 18 mars 2004 21:51
A : users@cocoon.apache.org
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message