You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christian Joelly <ch...@knapp.com> on 2002/11/21 10:46:37 UTC

Use of SessionAttributeSelector

Hello!

can anybody plz give me an example on how to use the
SessionAttributeSelector to check if an attribute exists in the actual
session? I always see the message:

DEBUG   (2002-11-21) 10:37.55:492   [sitemap.selector.session-attribute]
(/knapp/images/icon-folder-open.gif) Thread-41/SessionAttributeSelector:
Session attribute 'user' not set -- failing.

in the sitemap.log when i use following sitemap config:

<!-- wenn Session Attribute user nicht gesetzt, dann ab zum Login -->
<map:select type="session-attribute">
  <map:when test="user=''">
	<map:redirect-to uri="login/logincheck.xsp"/>
  </map:when>
</map:select>

in general: how can i construct tests or what are allowed tests?

thx, Chris

*lostinthefinenewcocoonbookssearchingformoredetailedinformationbutstillhavenotfoundit*
;-)

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian Jölly        Tel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7     A-8075 Hart bei Graz

-- Support your government, give Echelon/Carnivore something to parse --
AMTAS ATMD ATSC Abdullah Allah  communist CIA DD2-N DISA DoD GRU Gregori
Irak  Iran KGB  Kurdish LSD  NATO NSTD  Natasha  ORD RTEM  Russia  STRAP
Saddam Hussein  TSP  Yugoslavia   attack  bank  bomb  classfield  cocain
compromise defense  democracy  destroy  destruct  detonator  directorate
elections enforce extasy force  foreign embassy government grass hashish
heroin   illegal  information   international  military systems  missile
million dollars   nuclear  policital   pot  power   presidental  project
restricted data  revolution  rule the world sensitive  smuggle spy steal
system  takeover  terrorist  top-secret  warmod  warrior-T  weapon  weed
------------------------------------------------------------------------