Tino Breddin wrote:
Hi,

i'm trying to return a JDom document, a xml snippet, from a action, and then get access to it in a jx file.
Well, but what i get is:


[Document: No DOCTYPE declaration, Root is [Element: <testrootnode/>]]

What i expect is:

         <testrootnode>
               <name>somename</name>
         </testrootnode>

My approach looks like this:

(sitemap)
           <map:match pattern="test">
               <map:act type="get-test">
                   <map:generate type="jx"
                       src="show-test.jx" />
                   <map:serialize type="xml" />
               </map:act>
           </map:match>

(show-test.jx)
<jx:template xmlns:jx="http://apache.org/cocoon/templates/jx/1.0";>
   <content>
       ${request.getAttribute('testparamrequest')}     </content>
</jx:template>


Has anyone experience with that?

You could put your JDOM document in the session object and retrieve in show-test.jx with

${session.getAttribute('testparamrequest')}


Thanks,
Tino

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



--
Andre H. Juffer              | Phone: +358-8-553 1161
The Biocenter and            | Fax: +358-8-553-1141
    the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/

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