Ganael LAPLANCHE wrote:
>Hi all,
>
>How would you test an URL parameter (e.g.
>http://foo.com:8080/myfile.xml?bar=hello) in the
>sitemap ? How can I retreive 'hello' from the URL ?
>
>
>
I'm not sure about retreiving 'hello', but you can do this:
<map:match type="request-parameter" pattern="bar">
<map:select type="request-parameter">
<map:parameter name="parameter-name" value="bar"/>
<map:when test="hello">
<do something/>
</map:when>
</map:select>
</map:match>
Look through all of the matchers and selectors available in the apidocs.
--
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>