cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathaniel Alfred" <>
Subject RE: Cocoon 2.1.9 and xsp taglibs problems
Date Thu, 17 Aug 2006 06:41:55 GMT
You should convert the Java class to a Cocoon transformer.
The you build a simple xsp-generator | transformer pipeline
where the transformer replaces placeholder tags in the XSP
with the generated object using the SAX API.

If the logic is not too complicated, and since the markup details
are already in XML, you could also use an XSLT stylesheet instead
of a Java transformer.

Last idea for a quick and dirty hack with minimal changes:
Adapt the Java class to fill and empty xspCurrentNode, serialize
it into an XML string, and include it in the XSP
using the <xsp-util:include-expr> function.

HTH, Alfred.

-----Original Message-----
From: Ninh Quyen [] 
Sent: Mittwoch, 16. August 2006 20:44
Subject: Re: Cocoon 2.1.9 and xsp taglibs problems

what i'm trying to do is to build an xsp page with a dynamic generation 
of content, which is done using my java class.
The content is generated for each event due to the semantic description 
in a xml file. The generated objects could be buttons, radios, 
checkboxes ...
and they are scheduled in an corresponding layout for each type of

Those, what appears in the XSP is:

and in the java class, the corresponding objects are added with:

Hope you can get something clear.
Sorry for bad english and not so gut expression.

The original application was developed by a college 5 years ago, with 
cocoon 1.
I got his job now and have to improve/extend it. That guy is 
unfortunately no more here.
This message is for the named person's use only. It may contain confidential, proprietary
or legally privileged information. No confidentiality or privilege is waived or lost by any
mistransmission. If you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system. Please also immediately
destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual sender, except where
the message states otherwise and the sender is authorised to state them to be the views of
the sender's company.

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

View raw message