Re: Anyone using Castor with Cocoon2

2001-10-22 Thread Frank Taffelt

Hi,

yes, you can place all your castor stuff (castor.jar, ...) right into
cocoon/WEB-INF/lib directory.
After that you can include and use castor like a normal library.

hth,
frank








-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: Anyone using Castor with Cocoon2

2001-10-19 Thread Madel,Kurt

ok, stupid question, but I need a little help setting things up.  Can you
just place the castor jar in your class path, and then make the neccessary
include in your xsp page for the marshal function?  Sorry to be a bother,
but I think this kind of info would really help out Cocoon2 novices, like
myself, that are trying to understand in the context of other tools like
Castor.

thanks

-Original Message-
From: Frank Taffelt [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 9:32 AM
To: [EMAIL PROTECTED]
Subject: Re: Anyone using Castor with Cocoon2


Hi,

i'm using the following function to marshal a castor object into cocoon.

/**
  * marshalls an object into cocoon
  *
  * @param obj an Object the Castor generated Object
  * @param map a Mapping the Castor Mapping Object for the
given object
  * @exception Exception if an error occurs
  */
 private void marshal(Object obj,Mapping map) throws Exception{
   Marshaller marshaller = new Marshaller(new DocumentHandlerAdapter(new
EmbeddedXMLPipe(this.xmlConsumer)));
   marshaller.setMapping( map);
   marshaller.marshal(obj);
 }

you can call this from an xsp-page to render your data.

hth,
frank





-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




Re: Anyone using Castor with Cocoon2

2001-10-19 Thread Frank Taffelt

Hi,

i'm using the following function to marshal a castor object into cocoon.

/**
  * marshalls an object into cocoon
  *
  * @param obj an Object the Castor generated Object
  * @param map a Mapping the Castor Mapping Object for the
given object
  * @exception Exception if an error occurs
  */
 private void marshal(Object obj,Mapping map) throws Exception{
   Marshaller marshaller = new Marshaller(new DocumentHandlerAdapter(new
EmbeddedXMLPipe(this.xmlConsumer)));
   marshaller.setMapping( map);
   marshaller.marshal(obj);
 }

you can call this from an xsp-page to render your data.

hth,
frank





-
Please check that your question has not already been answered in the
FAQ before posting. 

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