cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <>
Subject Re: More problems with implementing servlet services
Date Sat, 19 May 2007 13:29:48 GMT
Joerg Heinicke wrote:
> On 19.05.2007 14:28, Grzegorz Kossakowski wrote:
>>> But a service generator without any post data makes absolutely sense 
>>> since it might really be optional to post anything. And I find it 
>>> quite strange to write
>> That's not true. If you don't post a data it's not the service any 
>> more but you can call it that way:
>> <map:generate src="servlet:test2:/extract-html"/>
>> Using normal FileGenerator.
> Ah, ok. I think I already read this somewhere in this thread.
>> You can argue that it's strange that if service is called we put it as 
>> parameter and if it's casual GET it is put in the src attribute. I'd 
>> disagree then because GET and POST are so much different that even 
>> different sitemap syntax makes sense.
> One more reason to always put the service URL into the src attribute as 
> you don't need to discuss and differentiate between GET and POST. The 
> sitemap was always GET/POST-unaware. Now you would need to change the 
> "nature" of your generator by changing its type instead of just removing 
> one parameter.

What about enhancing the file generator with the ServletServiceGenerator features?

Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}


View raw message