cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Docter" <>
Subject login validator
Date Fri, 14 Mar 2003 10:09:51 GMT

in our webapplication users need to login first.
For every request we have to check if someone is logged in.
For example, I could create a TestLoginAction
and use a parameter selector to determine if the user is logged in.
But this creates a big if-else loop in every pipeline.

Is there some way to have this behaviour defined for all pipelines?

I was thinking about the following :
<map:act type="testloginaction">
<map:select type="parameter" >
        <map:parameter name="parameter-selector-test" value="{loggedin}" />
		<map:when test="notloggedin">
<!-- redirect to login page -->
<map:match pattern ="req1" >
<!-- pipeline 1 -->
<map:match pattern ="req2" >
<!-- pipeline 2 -->

Does this work?
Or is there some other nice way to do this?
Any suggestions on this would be welcome.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message