Hi,

i tried your way:

Request request = ObjectModelHelper.getRequest(objectModel);
       Session session = request.getSession(true);
       session.setAttribute("testparamsession",doc);

Then:
${session.getAttribute('testparamsession')}

But i got the same result like before.

Thanks,
Tino

Andre Juffer schrieb:
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]





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