I surely wish i could attend, but i do have a HSSF Serializer question...
my intentions are to use the serializer outside of cocoon. in order to test
for concept i put the following code within my servlet:
try {
xlsOut = new OutputStreamWriter(response.getOutputStream());
sb = new ServletBehavior(applId);
String outStream = sb.process(request, response);
StringReader sr = new StringReader(outStream); // used when xml is
already in memory
InputSource is = new InputSource(sr); // put the XML into an Input
Source when coming from memory (not a file)
String contentType = sb.getContentType();
response.setContentType(contentType); // return string type
if (contentType.compareToIgnoreCase("vnd.ms-excel") == 0) {
HSSFSerializer hssf = new HSSFSerializer();
hssf.setOutputStream(response.getOutputStream());
XMLReader reader =
SAXParserFactory.newInstance().newSAXParser().getXMLReader();
reader.setContentHandler(hssf);
reader.parse(is);
}
i get a NullPointerException during the parse(). i saw in one message that
i need to initialize logging before hand. is this true? and if so, how is
this accomplished? any examples that you could provide would be more than
appreciated.
-----Original Message-----
From: Andrew C. Oliver [mailto:acoliver@;apache.org]
Sent: Sunday, October 20, 2002 10:40 PM
To: cocoon users; [EMAIL PROTECTED]
Cc: poi users
Subject: [Fwd: [Juglist] Monday night - Introduction to Cocoon 2.0]
(forwarding to POI only because I'll briefly cover the HSSF Serializer
[XLS/Excel] and be glad to answer any questions)
--
http://www.superlinksoftware.com - software solutions for business
http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
Java
http://krysalis.sourceforge.net/centipede - the best build/project
structure
a guy/gal could have! - Make Ant simple on complex
Projects!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]