On Tue, Jul 03, 2001 at 10:39:19PM +0200, Stefan Seifert wrote:
> I want to include the result of a cocoon transformation as part of
> another JSP Page as follows:
>
> ... jsp content ...
>
> <%
> String strIncludeURL = "../cocoon/meeting_agenda.htm?MeetingID=1";
> %>
> <jsp:include page="<%=strIncludeURL%>" flush="true"/>
>
> ... jsp content ...
>
>
> Unfortunately this does not work. If i use a JSP page as include
> destination it works. If i type in the Coccon-URL directly, i get the
> content right. But in combination i get nothing. The cocoon servlet is
> mapped on /cocoon/*. meeting_agenda.htm is the result of an C2 pipeline
> serialized as HTML.
Hmm.. should work, shouldn't it? Perhaps your unusual .htm extension is
confusing something?
I usually put Cocoon in a separate context, and use jakarta-taglibs'
"io" taglib to suck in the content.
But in your situation, <jsp:include> should work.
--Jeff
http://jakarta.apache.org/taglibs/doc/io-doc/intro.html
> Any ideas how to include a cocoon page in a JSP page? I've found a
> sample using jsp:include with C1, but this seems not to work with C2.
>
> Stefan
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>