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 [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 16. August 2006 20:44
To: users@cocoon.apache.org
Subject: Re: Cocoon 2.1.9 and xsp taglibs problems

Well,
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
client.

Those, what appears in the XSP is:
     <xsp:expr>clientHandler.buildContent(xspCurrentNode, 
request)</xsp:expr>

and in the java class, the corresponding objects are added with:
    xspCurrentNode.addChild("...")

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to