It is a little bit connected with my previous mail (html generator with 'post'), but much general question.
I have to embed some external content into existing page (a portlet) - to be more complex: they are forms with images.
So what I imaging is:
in sitemap:
<map:match pattern="integratedata/*">
<map:call resource="http://external_location/{1}" />
<map:serialize/>
</map:match>
So it takes care of all requests, + GET + POST. Unfortunately it doesn't work with map:call.
My current solution is:
<map:match pattern="integratedata/data*">
<map:generate type="html" src="http://localhost:8080/xxx/data{1}?{request:queryString}"/>
<map:serialize type="html"/>
</map:match>
<map:match pattern="integratedata/*.gif">
<map:read mime-type="images/gif" src="http://localhost:8080/xxx/{1}.gif"/>
</map:match>
Drawbacks: 1. I've to use GET method. How to move to POST? 2. Diferent matchers for different content. 3. When source changes I have to adjust to it (new reader, etc)
The first drawback could be really problem when form sends too much data - GET has limited uri.
Is there any way to simply achieve this? Any block? Thanks, Tom
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
