Sure. Two files are attached, the BeanGenerator and a PropertiesComponent to allow a properties object to be passed to the constructor for the class that will build your bean.
 
Please feel free to find bugs or make improvements and pass them back to me.  If someone wants to include this in Cocoon somewhere that's OK too.
 
Ralph
 
 
-----Original Message-----
From: David Benoff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 6:52 AM
To: [EMAIL PROTECTED]
Cc: Ralph Goers
Subject: RE: NEWBIE: Using request-scope XML doc as generator source?

Hi Ralph,

I�m using Hibernate for persistence.  The objects follow a bean pattern (getters/setters and are serializable).  Using Betwixt sounds like a very good solution.  I�d be very interested to see what you�ve got.

 

Thanks,

David

 

-----Original Message-----
From: Ralph Goers [mailto:[EMAIL PROTECTED]
Sent: Monday, September 01, 2003 10:52 PM
To: '[EMAIL PROTECTED]'
Subject: RE: NEWBIE: Using request-scope XML doc as generator source?

 

What are you starting from?

 

In my case we are using EJBs that return Transfer Objects.  I have written a generic BeanGenerator that uses Betwixt to convert the Transfer Objects directly into SAX events.

 

Ralph

-----Original Message-----
From: David Benoff [mailto:[EMAIL PROTECTED]
Sent: Monday, September 01, 2003 6:23 PM
To: [EMAIL PROTECTED]
Subject: NEWBIE: Using request-scope XML doc as generator source?

Hi all,

I have a Tomcat/Struts web app using JSP that I�m trying to convert to Cocoon.  I have it working with the action classes writing temp XML files to disk and Cocoon�s file generator using the temp files for the XSLT transform, clearly not a very scalable setup.  Is it possible to configure Cocoon to use a JDOM document stored as a request or session attribute as the generator XML source?  Or perhaps some other alternative?

 

Thanks very much for any hints!

 

David Benoff

 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 8/4/2003


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 8/4/2003


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 8/4/2003

Attachment: BeanGenerator.java
Description: Binary data

Attachment: PropertiesComponent.java
Description: Binary data

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

Reply via email to