On Thursday, June 13, 2002, at 03:04 PM, Matt Sergeant wrote:

> That's a bit too much magic for XSP I'm afraid...
>
> Try:
>
> <body>
> <xsp:logic>
>   my $val = <global:get-attribute name="Accesses"/> + 1;
>   <global:set-attribute name="Accesses">
>     <xsp:expr>$val</xsp:expr>
>   </global:set-attribute>
> </xsp:logic>
> <p>...

Ah, ok, thanks.  BTW, my example code came from the AxKit demo, 
demo/xsp/global.xsp [14-17].  I can't take credit for that magic. :)

Now I just have to figure out why the Global variable is not being 
persistent.

Thanks again,
DaveD


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

Reply via email to