On 8-Nov-07, at 7:52 PM, Vince LaMonica wrote:

<xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core";
          xmlns:global="http://www.creITve.de/2002/XSP/Session";
          xmlns:auth="http://www.creITve.de/2002/XSP/Auth";
          xmlns:session="http://www.apache.org/1999/XSP/Session";>

    <login>

<xsp:logic>
my $login = PRIVATE::WWW::com::comground::screendoor::dealer::login($cgi);
            if ($login->{valid}) {
                eval {
                    <auth:login destination="summary.xsp">
<auth:access type="user"><xsp:expr>$login-> {booth}</xsp:expr></auth:access>
                    </auth:login>
                };
                $session = $r->pnotes('SESSION');
<session:set-attribute name="booth"><xsp:expr> $login->{booth}</xsp:expr></session:set-attribute> <session:set-attribute name="dealer"><xsp:expr> $login->{dealer}</xsp:expr></session:set-attribute>
                die $@ if $@;
            }
</xsp:logic>
-------8<---------

So at this level $r isn't in scope. At least not the proper AxKit $r. You need to be in the main output stage of the XSP page for the right $r to be valid.

Matt.

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

Reply via email to