just type the name of the external servlet in your sitemap pipeline, adding
the parameters.
in example, if you want to call a servlet called 'outserv' and give it two
parameters, 'X' and 'Y', you can do something like this:
<map:match pattern="outserv">
<map:act type="request">
<map:parameter name="parameters" value="true"/>
<map:generate
src="http://www.something.com/outserv?X={X}&Y={Y}" />
</map:act>
<map:serialize type="html"/>
</map:match>
Here, you submit the parameters given to cocoon to the external servet with
the GET method. I dont't know how to do it directly with POST method, but
this one works fine if GET method is available.
beware to use '&' instead of '&'
-----Mensaje original-----
De: Andreas Hartmann [mailto:[EMAIL PROTECTED]]
Enviado el: domingo, 13 de enero de 2002 18:37
Para: [EMAIL PROTECTED]
Asunto: How to call an external Servlet?
Hi folks,
I want to process the output of an external servlet through C2.
The servlet gets FORM-parameters via GET and POST.
How can I invoke the servlet?
Thanks in advance,
Andreas
---------------------------------------------------------------------
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]>