cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <j...@socialchange.net.au>
Subject nested XSP content: Cocoon not reentrant?
Date Sun, 17 Sep 2000 12:53:04 GMT
Hi all, 

Following the recent "How to call servlets.." thread
(http://archives2.real-time.com/pipermail/cocoon-users/2000-September/004277.html):

Is there any reason why an XSP page can't include content generated by
another XSP? If this is valid:
<util:include-uri href="http://myserver.com/servlet/foo"/>

why shouldn't this be?
<util:include-uri href="http://localhost:8080/foo/simple.xml"/>

(if simple.xml is an XSP returning text/xml).

It seems if you try to do this (include XSP-generated content in an
XSP page), Cocoon never returns (1.8dev, tomcat3.2b3).

Should this be possible? Is there any other way to achieve this?

I'll include some sample code to demonstrate.

Thanks, 

--Jeff

---- samples/reentrant/simple.xml ---
<?xml version="1.0"?>
<?cocoon-format type="text/xml"?>
<p>Hello world</p>
--------

---- samples/reentrant/callsimple.xml ---
<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?cocoon-format type="text/html"?>

<xsp:page
xmlns:xsp="http://www.apache.org/1999/XSP/Core"
xmlns:util="http://www.apache.org/1999/XSP/Util">
<html>
    <body>
    About to include simple.xml..
    <util:include-uri
href="http://localhost:8080/samples/reentrant/simple.xml"/>
    </body>
</html>
</xsp:page>
---------

Mime
View raw message