cocoon-users mailing list archives

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

i have tried to setup the pipeline another way and lokked at the
compiled sitemap java code. it seems that the java code generated is far
away from being complete...

are the sessionstate matcher code for the sitemap broken in cocoon
2.0.1? if so, can i change only the sessionstate code parts to avoid
migrating the whole application to a newer cocoon version?

thx, Chris

btw: sitemap and compiled sitemap attached for interest...

On Wed, Nov 06, 2002 at 02:52:15PM +0100, Christian Joelly wrote:
> 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:pipeline>
>     <map:match pattern="*" type="sessionstate">
>       <map:parameter name="attribute-name" value="user"/>
>       <map:redirect uri="login/login.xml"/>
>     </map:match>
>     <map:match pattern="**/*.css">
>       <map:read src="css/{2}.css" mime-type="text/css"/>
>     </map:match>
>     <map:match pattern="images/**.*">
>       <map:read src="images/{1}.{2}" mime-type="image/{2}"/>
>     </map:match>
>     <map:match pattern="**/*.js">
>       <map:read src="jscript/{2}.js" mime-type="text/javascript"/>
>     </map:match>
>     <map:match pattern="applets/**">
>       <map:read src="applets/{1}" mime-type="application/octet-stream"/>
>     </map:match>
>     <map:match pattern="*/**">
>       <map:mount uri-prefix="{1}" src="{1}/" check-reload="yes"/>
>     </map:match>
>   </map:pipeline>

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