But if the data are not simple string but there is list of object, each object represents row in the table (it is structured in the attributes (columns))?
Thank you for answer.
Martin Grofcik
[EMAIL PROTECTED] wrote:
If those data are just strings , return a hashtable at the end of your action which contains the key,value pairs. Afterwards you access them in the sitemap using <map:parameter> tags:
In your action:
Hashtable ht = new Hashtable() ht.put("param1","something"); return ht;
In the sitemap:
<map:transform type="xslt" src="test.xslt"> <map:parameter name="par1" value="{param1}"/> </map:transform>
-----Original Message-----
From: grofcik.lan [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 11:15
To: [EMAIL PROTECTED]
Subject: How to get data from action to transformer
Hello I am new at the cocoon,
I'd like to get some data in the action (from EJB list of objects) and I want to put them to the transformer (xslt) How could I do it and how could I access data in the transformer?
Action
|
V
Generator (meta description of the page .xml)
|
V
Transformer ( xslt transformation of the data)
|
V
Serializer
Thank you for answer.
Martin Grofcik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
__________ Informacia od NOD32 1.574 (20031206) __________
Tato sprava bola preverena antivirusovym systemom NOD32. http://www.eset.sk
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
