On Tue, 2003-08-12 at 13:14, Todtenhaupt, Susann wrote:
> I need the following class: org.apache.cocoon.serialization.HSSFSerializer
> In which jar can I find it?
> 
> I have a xml-dom-tree in memory and transform it via xsl into gmr
> (<gmr:...>...</gmr:...). Now I want to hand it over to the HSSFSerializer.
> This is the right way, isn't it?

The way you're describing it here it seems like you're not using Cocoon
but merely want to reuse the HSSFSerializer class?

If so, you should be aware that these classes are not designed to be
used that way, but are supposed to be managed by Cocoon's (or in fact
Avalon's) component manager and need the necessary context to execute.

This being said, a serializer will probably be easily reusable outside
of Cocoon. If you're using Cocoon 2.1, you'll need at least
cocoon-poi-block.jar, cocoon-2.1.jar, avalon-framework-4.1.4.jar, maybe
others. You'll also need to respect the Avalon "lifecycle" of the
serializer. Practically this means calling the methods "enableLogging",
"compose" and "initialize" before using it.

However, to answer your question, no, this is not the correct way: the
correct way is to define a pipeline in Cocoon's sitemap.xmap.

> 
> -----Urspr�ngliche Nachricht-----
> Von: Reinhard P�tz [mailto:[EMAIL PROTECTED] 
> Gesendet: Tuesday, August 12, 2003 1:00 PM
> An: [EMAIL PROTECTED]
> Betreff: RE: HSSFSerializer
> 
> Assuming you use Cocoon 2.1 you have to include the POI block.
> 
> Cheers,
> Reinhard
> 
> > -----Original Message-----
> > From: Todtenhaupt, Susann 
> > [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, August 12, 2003 12:59 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: HSSFSerializer
> > 
> > 
> > Hello @ all!
> > 
> > I want to use HSSFSerializer for generating excel-sheets. 
> > Which jar I have to include?
> > 
> > Thanx in advance!
> > suse
> > 
-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]                          [EMAIL PROTECTED]


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

Reply via email to