cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Portier <...@outerthought.org>
Subject Re: Can I do this?
Date Tue, 25 Mar 2003 22:10:13 GMT
you might want to look into the RequestParameterAction

http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/matching/RequestParameterMatcher.html
http://cvs.apache.org/viewcvs.cgi/cocoon-2.0/src/java/org/apache/cocoon/matching/RequestParameterMatcher.java?rev=1.1&content-type=text/vnd.viewcvs-markup

<map:match pattern="query">
   <map:generate src="http://whatever/andsome?term={1}" />
</map>


if you need more then one request parameter it might be easier to 
use the RequestParameterAction:
http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/RequestParamAction.html


-marc=


joaocesar@duploclique.com wrote:
> Can I (?) do anything like this:
>  
> <map:match pattern="search?query=*">
>         <map:generate type="file" src=http://blablabla?term={1}/>
>         <map:transform type="xslt" src="stylesheets/search2html.xsl"/>
>         <map:serialize type="html"/>
> </map:match>
>  
> I've found that if I do (...) pattern="*.search"> (...)  it works, and i 
> can do for example "search phrase".search in the address bar and it 
> matches with the generate prototype.. but i want to use that notation to 
> match a GET form.
>  
> Thanks
>  
> João César
> joaocesar@netcabo.pt
>  

-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at              http://radio.weblogs.com/0116284/
mpo@outerthought.org                              mpo@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message