On 20.Dec.2002 -- 09:23 AM, [EMAIL PROTECTED] wrote:
> Hi,
> 
> I'm checking in the <xsp:logic> part if a <xsp-session is valid. If yes
> load this, else load that. Is there a way to do some kind of that.
> I'm trying to restrict a page. Or is there a other approach.

I would suggest to put both branches into different files and guard
the protected case with an action that verifies the condition. 

Cocoon comes with a number of actions that provide such
functionality. Out of my head you may want to look at the
authentication framework or the SessionValidatorAction.

        Chris.
-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to