Hi List.
Is that possible to determine protocol used (http://, https://) using
any site-map selectors?
if not - what's the easiest and CORRECT way to do that?


I think best way to do that is to use SimpleSelector[1] and Request Input Module[2], sitemap framgnet will look like:

  <map:select type="simple">
      <map:parameter name="value" value="{request:protocol}"/>
      <map:when test="HTTP/1.1">
          ...
      </map:when>
      <map:when test="{secure HTTP}">
          ...
      </map:when>
   </map:select>

Haven't tried this, but it should work. Maybe you can use {request:secure} instead of {request:protocol}, just try to experiment a little.

[1] http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/selection/SimpleSelector.html
[2] http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/RequestModule.html


--
g[R]eK

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to