cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@fztig938.bank.dresdner.net>
Subject [C2] RequestParamMatcher source
Date Mon, 14 May 2001 18:40:55 GMT
Hi All,
	
	Hope all is well around the globe.

	I've just updated my RequestParamMatcher class, and thought I
	would send it around just in case anyone else finds it useful.
	
	Its a simple matcher, which matches a given request parameter, and if
	existing, adds the given request parameter's value to the sitemap
	listOfMaps, for later use/subsitution.

	Here's one simple example:

	<map:match type="request" pattern="dest">
	    <map:redirect-to uri="{1}"/>
	</map:match>

	This example matches the request parameter 'dest', and if it exists,
	redirects the client to the value specified by the dest parameter
	itself.

	in sitemap:

	<map:matcher name="request"
		src="org.apache.cocoon.matching.RequestParamMatcher"/>

	If anyone has a good name to use instead of the {1} feel free to
	suggest it. I'm happy to change it to something more legible :-)

	Cheers,

	Marcus

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   Open Software Associates GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'     Email : Marcus.Crafter@osa.de
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:           After Hours    : +49 69 49086750

Mime
View raw message