cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Pruy <Rainer.P...@Acrys.COM>
Subject Re: Passing POST Parameters to a block call, cocoon 2.2, please urgent!
Date Thu, 27 Aug 2009 08:07:56 GMT
I forgot to add:

Please note, that - among some other places in cocoon - servlet protocol starts a new request,
(nearly) independent from the original one.

This request (currently) does not inherit any parameters.
To achieve such behavior, it would be necessary to add some syntax for control of propagating
parameters from the "calling" sitemap.
As there are a lot of use cases where there is no benefit from passing a bunch of parameters
along without need, it is quite
reasonable not to pass any parameters be default.
I could however think of a means of control to be added to the servlet protocol URI for activating
passing of parameters.
But if we are there, the next though is of passing only some params, adding some more, overwriting,
modifying value based on existing
thus, I doubt there is an easy syntax at hand.

And thgere is still the fundamental question of whether such "feature" really is necessary
or even beneficial for building
"well-formed" applications.


Ali Mahdoui schrieb:
> Hi,
> i want to forewoard my form data to a "servlet:..." pipeline request.
> My Form:
> <form action="pattern1" method="post">
>     <input type="text" name="data">
> </form>
> The source pipeline calls a block like this
> <map:match pattern="pattern1">
>      <map:generate src="servlet:block-id:/pattern2"/>
> </map:match>
> In my second Block i have a match which uses the posted data to make a
> service call on a third server
> <map:match pattern="pattern2">
>     <map:generate src="third service call"/>
>     <map:serialize type="xml"/>
> </map:match> 
> My propblem is that all the posted parameters from my form are lost in
> the second block
> and the third service call does not succeed.
> What i am doing wrong?
> I there any tutorial or sample how to do that correctly?
> I have tried to change the code in cocoon-servlet-service-impl for the
> class ServletServiceRequest, i can now get the parameters and the
> request method but it is still not working correctly.
> thank you for your help.
> ------------------------------------------------------------------------
> Surfen – optimiert für MSN. <>

Rainer Pruy

Acrys Consult GmbH & Co. KG
Theodor-Heuss-Str. 53-63, D-61118 Bad Vilbel
Tel: +49-6101-98760-0 Fax: +49-6101-98760-50
Web: -  Email:
Handelsregister: Frankfurt am Main, HRA 31151
Komplementärin: Acrys Verwaltungs GmbH
Theodor-Heuss-Str. 53-63, D-61118 Bad Vilbel
Handelsregister: Frankfurt am Main, HRB 57625

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message