Hi Cocoon users,
I'm new to cocoon framework. In my office, I want to
use the cocoon framework to export data to different
data formats(especially Excel format). 
My web application is based on stuts framework and the
struts-cocoon plugin. I believe that the choice is
completely adapted, but I have some problems when I
want to use HSSF Serializer for Exports. 
The errror message that I have let think that Xalan
does not find my xslt style sheet: 

Original Exception: java.lang.RuntimeException:
java.io.IOException: Cannot find the sheet object
        at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170)
        at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
        at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
        at
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:529)
        at
webmx.common.fwk.cocoon.generator.BeanGenerator.generate(Unknown
Source).
 
As you can see I'm using my own generator wich
serialises the beans passed to cocoon from the struts
actions through the session. 

Wich is astonishing is that with the XML Serializer, I
had no problem.I verified that I had correct well
formed output from the transformer to the HSSF
Serializer.

here is my pipline config:

    <map:pipeline>
            <map:match pattern="*.xls">
                <map:generate type="bean"/>
                <!--<map:act type="header">
                                <map:parameter name="Pragma"
value="no-cache" />
                                <map:parameter
name="Content-Disposition" value="attachment ;
filename={1}.xls" />
                                <map:parameter name="mime-Type"
value="application/vnd.ms-excel" />
                        </map:act>
                        -->
                        <map:transform type="xslt"
src="context://styles/xml2xls.xsl"/>
                        <map:serialize type="xls"/>
                        <!--<map:serialize type="xml"/>-->
            </map:match>             
        <!-- end added XLS matcher here -->        
        </map:pipeline>
    

Have you an idea? I spent a lot of time on it and it's
really frustrating not to have it work.Is it a coccon
Bug?

Thank you very much.

Amine

PS: I'm using cocoon2.1m2 and i can't change for later
version, because of the struts-cocoon plugin.



_________________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com

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

Reply via email to