cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: Embedding "external" site in my Cocoon app.
Date Mon, 26 Apr 2004 18:42:46 GMT
Antonio Fernandez wrote:

>Hello everyone,
>
>I'm already lost trying to embed an external application into my Cocoon app,
>I've tried a couple of things extracted from searches on this list,
>
>First, I tried something quite simple:
>
>    <map:act type="request">
>      <map:generate
>src="http://localhost:XXXX/externalApp/index.jsp{requestQuery}"
>type="html"/>
>     <map:transform src="myApp/resources/xsl/extTransform.xsl">
>      <map:parameter name="use-request-parameters" value="true"/>
>     </map:transform>
>     <map:serialize type="html"/>
>    </map:act>
>
>And I was quite happy until I reached the first POST. Since I wanted to POST
>form data to the external servlet, I used cinclude,
>the way it is documented in the Cocoon docs, section "Including External
>XML(advanced)", but at that point I begun getting error
>messages since the HTML generated by the external servlet was not correctly
>formed.(lack of ending tags), and they weren't being
>corrected by the html generator as in the first try.
>
>So, I'd like to know if there is some kind of "html-tidy" transformer,
>similar to the html generator, which I could insert between the
>cinclude generation and my application stylesheet, to feed it with correct
>data. Or, if you have any other advice, I'd be very grateful to hear
>it.
>  
>
If you're using cinclude to request content that is coming in as HTML, 
use a cocoon:/ protocol request in your cinclude request. Then, the page 
referred to by the cocoon: protocol is served by a pipeline that begins 
with the HTML generator.

Makes sense?

Regards, Upayavira



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message