Just wanted to drop a note if anyone was interested in passing business objects to the JXTemplate generator using an action rather than flow. To put objects into the flow context, use the flowing code in your action:

Map bean = new HashMap();
bean.put("foo", fooObject);
FlowHelper.setContextObject(objectModel, bean);

Then access the objects placed in the map as a local jxtemplate variable:

<?xml version="1.0"?>
<html>
<body>
<p>${foo.getSomeProperty()}</p>
<p>${foo.someProperty}</p>
</body>
</html>

cheers,
-steve


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



Reply via email to