Hi Ali,

the "problem" is, you are trying to use cocoon inappropriately.

Currently there is no way passing parameters via servlet protocol.
(Actually, you could use URL-encoded parameters. That will work. But, not all 
forms data can be propagated that way.)

The only approach that will work with passing forms data in
is directing the (external) call directly into the targeted block.
(You may use inheritance to get access to shared resources from "master" 
sitemap).

This was quite a short sketch of a non-trivial topic.

Nevertheless, this deficiency of the servlet protocol is the reason why I still 
stick with 2.1.
I can not afford the time for restructuring my applications to cope with new 
inter sitemap semantics.


Rainer


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. <http://redirect.gimas.net/?n=M0908aIE_MSN1>

-- 
Rainer Pruy
Geschäftsführer

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: http://www.acrys.com -  Email: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to