cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terry Brick <>
Subject Newbie: How to capture XML from custom class?
Date Wed, 02 Jun 2004 16:10:15 GMT
I've just started using Cocoon (2.1) and so far I'm loving it.  The problem is that probably
than 50% of my XML will be static.  The rest will be dynamic generated from SQL interaction,
I want to do all (or most) of my business logic in regular ol' Java classes and just spit
out the
XML in the right places.  Ideally, I would like something like this...
  <title>My Title</title>
    <mynamespace:generate class="com.mycompany.businessobject1"/>

Where the businessobject1.toString() representation is used to fill in that section with XML
where businessobject1 has access to the servlet context, request parameters, etc.
Anyway, I don't require it to be exactly as shown above, I'm just trying to illustrate my
requirements and am wondering what's the right approach in Cocoon.
It's probably obvious to existing users in the doc, but I'm just starting out and am having
a hard
time getting some aspects of Cocoon.  Do I simply need to write a custom generator?  I don't
to script things, but do I just need to use XSP to instantiate my class (but I need the servlet
request object)?
Could somebody please point me in the right direction?


Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message