In fact, this didn't work:
<map:select type="request-parameter">
<map:parameter name="parameter-name" value="external-entity-uri" />
<map:when test="">
<!-- normal document processing -->
</map:when>
<map:otherwise>
<!-- process request parameter -->
</map:otherwise>
</map:select>
It seems to always do the otherwise.
Is there another way to select on the presence
( rather than the value ) of a request param ?
-- Steve Majewski
On Mar 3, 2007, at 10:37 AM, Steven D. Majewski wrote:
In the docs and examples for the request-parameter selector,
the selection tests are done on the value of a particular request-
parameter
<map:select type="request-parameter">
<map:parameter name="parameter-name" value="command"/>
<map:when test="list">
....
</map:when>
<map:when test="create">
...
</map:when>
...
<map:otherwise>
...
</map:otherwise>
</map:select>
But what I want to do is select different processing
depending on the presence of a request parameter:
if no parameter exists, then process document normally;
if parameter exists, do something with that parameter.
What is the best way to do that?
Will <map:when test=""> work when there's no parameter
as well as a null parameter ?
( Then I could have normal document processing under
that test and parameter processing under <map:otherwise>
Is there any way to select in the sitemap based on the
presence of ANY request parameters ?
I tried adding "*.*?**" as a pattern before my "*.*" pattern
but this didn't seem to work.
-- Steve Majewski
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]