Hi Aaron, *********** REPLY SEPARATOR ***********
On 14.01.2002 at 09:37 SANSONE, AARON M [Non-Pharmacia/1000] wrote: >Andreas, > >Just a random thought but: > >I believe that if you use the request-parameter action, you can actually >retrieve the query string as a sitemap parameter. Then you could use that >string as your GET parameter set (which would forward all parameters that >were passed in). Check the source code for >org.apache.cocoon.acting.RequestParamAction to see how it works. That would be my next approach, if I didn't find any other answer. But I had to change the servlet - so that it only implements doGet() - and I wanted to avoid this, because future versions of the servlet shall run without changes. Thanks, Andreas > If your >issue is security around using the GET method, then I would suggest writing >a stylesheet that took the query string and placed it in a hidden formfield >then use javascript to automatically submit the form. (An ugly hack...) > JavaScript is out of the question :) >HTH, > >Aaron > > >Just a theory here, but you could write your own action to extract the >request query and > Could you give me some more info about this? I already tried to do it with an action, without any success ... >-----Original Message----- >From: Andreas Hartmann [mailto:[EMAIL PROTECTED]] >Sent: Monday, January 14, 2002 7:22 AM >To: [EMAIL PROTECTED] >Subject: RE: How to call an external Servlet? > > > >Hi Lukas, > >thanks for your answer, but ... [see below] > >*********** REPLY SEPARATOR *********** > >On 14.01.2002 at 11:59 lucas wrote: > >>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 is exactly my problem. With GET everything works fine, >but I couldn't find a way to pass parameters by POST. >I don't want to set the parameters in the sitemap, I want to "forward" >the parameters from an HTML form (it's a message board servlet). > >>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]> > > > > >--------------------------------------------------------------------- >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]> > >--------------------------------------------------------------------- >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]> --------------------------------------------------------------------- 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]>