You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Thorsten Mauch <ma...@imkenberg.de> on 2000/10/15 18:47:22 UTC

How to intgrate existing XML-Doc in XSP

Hello
I have already classes that produce XML-Documents but
I don't know how to integrate them into the XSP. I tried the
following code:

<?xml version="1.0"?>
<?cocoon-process type="xsp"?>

<xsp:page 
  language="java" 
  xmlns:xsp="http://www.apache.org/1999/XSP/Core">

<xsp:logic>
    com.imkenberg.bo.Customer customer   =
com.imkenberg.bo.Customers.getCustomer(1223);
    try{
      document= customer.getXMLDoc();
    }
    catch(Exception ex){}

</xsp:logic>
</xsp:page>

but if I inspect the generated Producer the code appear in
the declaration section. But what i want is to override the
populateDocument() method.
How can I archive this ?