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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Apache Cocoon Actions & Parameters

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:action name="search" src="com.kiddo.grlegislation.searchAction"/>
<map:action name="versioncontrol" src="com.kiddo.grlegislation.versionManagementAction"/>

<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}"/>

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!