cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes.Bec...@o2.com
Subject Sessions and <xsp:logic>
Date Fri, 20 Dec 2002 08:23:28 GMT
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.

My non functioning approach:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java"
      xmlns:xsp="http://apache.org/xsp"
      xmlns:xsp-session="http://apache.org/xsp/session/2.0">
<html>
      <head>
      <title>
            Portal
      </title>
      <xsp:logic>
            if(<xsp-session:get-attribute name="userid"/> != null)
            {
                  </head>
                  <body bottomMargin="0" leftMargin="0" ...
                  ...
            }
            else
            {
                        <meta http-equiv="refresh" content="5;url=login"/>
                  </head>
                  <body>
                        <p>
                              Login failed
                        </p>
                  </body>
            }
      </xsp:logic>
</html>
</xsp:page>


Thanks
Jonny
----------------------------------------------------------------------------------------------------

This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.




---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message