Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Apache Cocoon Actions & Parameters

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI there, I'm working my thesis about publishing legislation in public. The whole act uses XML documents(laws' text) and RDF metadata(laws' interactions). I started a web app on Apache Cocoon 2.2 and I really enjoyed till now. My problem is that Apache Cocoon documentation is really bad to say the least. I really need help about setting actions in the ordinary way(get params, action, return data). I'm trying to do something like that on my sitemap:

<map:components>
<map:actions>
<map:action name="search" src="com.kiddo.grlegislation.searchAction"/>
<map:action name="versioncontrol" src="com.kiddo.grlegislation.versionManagementAction"/>
</map:actions>
</map:components>


<map:pipeline id="pd-version">
<map:match pattern="pd/*/*/latest">
<map:act type="versioncontrol">
<map:parameter name="type" value="pd"/>
<map:parameter name="year" value="{1}"/>
<map:parameter name="id" value="{2}"/>
</map:act>
</map:match>
</map:pipeline>


Let's say I have my action class and someone types http://localhost:8888/GRLegislation/pd/2011/0054/latest. I want to handle this request with my action (versionManagementAction), having the parameters(type,year,id). Any help by someone used this framework in the past???
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!