Please help... almost there!!
Reading the API for the
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/acting/ServerPagesAction.html
ServerPagesAction ,
I find some text claiming that;
if I add a parameter named "output-attribute" ,
"the XSP-generated document" will be stored in a "request attribute"
OK, so my 1st test goes like this:
-------------------------------------------------------------------------
<map:act src="xsp/simple_http_request.xsp" type="serverpages" >
<map:parameter name="output-attribute" value="xsp-action-result" />
<map:read src="{request-attr:xsp-action-result}" mime-type="image/gif"/>
</map:act>
------------------------------------------------------------------------------------------------
java.io.FileNotFoundException:
/home/kdm/apps/tomcat-6.0.14/webapps/cocoon2.1.11/my-app/org.apache.cocoon.components.sax.xmlbytestreamfragm...@dca977
(No such file or directory)
-----------------------------------------------------------------------------------------------
..witch is GOOD! I seem to have an output fragment (XMLByteStreamFragment)
avaliable "somehow"
But how can I "get" a specific xml element inside this object ??
( I tried this BUT the result was only a blank string:
<map:read src="{request-attr:xsp-action-result/root/data[1]/picture}"
mime-type="..."/> )
Q: How am I able to "get at" this XMLByteStreamFragment in this phase ??
Kjetil
--
View this message in context:
http://www.nabble.com/%282.1.11%29-output-attribute---XSPAction----howto-%22get-at%22-output-fragment-in-sitemap--tp23138721p23138721.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]