cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Joelly <>
Subject Using matchers, especially sessionstate...
Date Wed, 06 Nov 2002 13:52:15 GMT
Hello all!

i have some troubles using the sessionstate matcher in a pipeline.
I want to check for the existance of a session attribute, and when it
doesn't exist we should be redirected to a login page:

But i got lots of errors when i call want to use this pipeline...

    <map:match pattern="*" type="sessionstate">
      <map:parameter name="attribute-name" value="user"/>
      <map:redirect uri="login/login.xml"/>
    <map:match pattern="**/*.css">
      <map:read src="css/{2}.css" mime-type="text/css"/>
    <map:match pattern="images/**.*">
      <map:read src="images/{1}.{2}" mime-type="image/{2}"/>
    <map:match pattern="**/*.js">
      <map:read src="jscript/{2}.js" mime-type="text/javascript"/>
    <map:match pattern="applets/**">
      <map:read src="applets/{1}" mime-type="application/octet-stream"/>
    <map:match pattern="*/**">
      <map:mount uri-prefix="{1}" src="{1}/" check-reload="yes"/>

thx, Chris

KNAPP Logistics Automation
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

View raw message