You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Vermeulen, Francis" <Fr...@atosorigin.com> on 2002/11/19 15:33:48 UTC
Help with Action that puts XML fragment in Session
Hi,
I would be gratefull if anyone could shed some light on the problem I
encounter.
I try to use a self-written Action that produces an XML fragment (as an
XMLizable object) and puts this in the Session. After which I use the
SessionAttributeGenerator to generate this XML from the session and output
it to the browser.
Here is the submap that I'm using:
<<sitemap.xmap>>
Here is the source code for my Action:
<<MyMessage.java>> <<ProduceMessage.java>>
The result of this is that the code past the "new MyMessage()" statement is
NEVER executed....
If I change ProduceMessage.java to directly put the XML fragment as a String
object in the session, the desired result is produced.
I suspect there is a problem when trying to load a class (MyMessage) from
whithin the action, but I can't get the explanation by debugging the stuff.
I'm using JDK 1.3.1, Tomcat 4.0.2 and Cocoon 2.0.3 under Windows 2000.
Thanx for your help.
Regards,
Francis
============================================
Ing. FRA Vermeulen
Senior J2EE Architect
ECM Solutions - Eindhoven
mobiel: +31 (0) 6 222 03 856
e-mail: francis.vermeulen@atosorigin.com
============================================