Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wssp scripting help

0 views
Skip to first unread message

da...@mauimail.com

unread,
Oct 20, 2001, 12:34:13 AM10/20/01
to
I am trying to get my "login.wssp" page to display a different Web Page only if the user's
account has been disabled. Can somebody at Stalker please correct my bad syntax? I'm sure
this line is totally wrong:
<!--%%IF EQUALS(errorCode AND "access to this account is disabled")-->

But I think the rest of it is okay. Below is the whole thing:


<HTML>
<HEAD>

<!--%%IF EQUALS(errorCode AND "access to this account is disabled")-->

<title>Account Disabled</title>
<BODY BGCOLOR="#FFFFFF" text="#000000">
This Account Has Been Disabled.

<!--%%ELSE-->

<title>Account Disabled</title>
<BODY BGCOLOR="#FFFFFF" text="#000000">
Displayed Login Page

<!--%%ENDIF-->

</BODY>
</HTML>

#############################################################
This message is sent to you because you are subscribed to
the mailing list <CGat...@mail.stalker.com>.
To unsubscribe, E-mail to: <CGateP...@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePr...@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePr...@mail.stalker.com>
Send administrative queries to <CGatePro...@mail.stalker.com>

Vladimir A. Butenko

unread,
Oct 20, 2001, 9:41:54 AM10/20/01
to
On Fri, 19 Oct 2001 18:34:13 -1000
<da...@MauiMail.com> wrote:
> I am trying to get my "login.wssp" page to display a different Web
> Page only if the user's
> account has been disabled. Can somebody at Stalker please correct my
> bad syntax? I'm sure
> this line is totally wrong:
> <!--%%IF EQUALS(errorCode AND "access to this account is
> disabled")-->


The WSSP scripting language does not allow for literal strings in any place other than those directly specified in the language specs.

You can place the string into the strings.data file:

disabledError = "access to this account is disabled";

and use IF EQUALS(errorCode and String("disabledError"))


Sincerely,
Vladimir

Vladimir A. Butenko

unread,
Oct 20, 2001, 9:55:08 AM10/20/01
to
On Sat, 20 Oct 2001 06:41:54 -0700
Vladimir A. Butenko <vladimir...@stalker.com> wrote:
> On Fri, 19 Oct 2001 18:34:13 -1000
> <da...@MauiMail.com> wrote:
> > I am trying to get my "login.wssp" page to display a different Web
> > Page only if the user's
> > account has been disabled. Can somebody at Stalker please correct
> my
> > bad syntax? I'm sure
> > this line is totally wrong:
> > <!--%%IF EQUALS(errorCode AND "access to this account is
> > disabled")-->
>
>
> The WSSP scripting language does not allow for literal strings in any
> place other than those directly specified in the language specs.
>
> You can place the string into the strings.data file:
>
> disabledError = "access to this account is disabled";
>
> and use IF EQUALS(errorCode and String("disabledError"))

PS.

But you will be able to do it your way:

EQUALS(errorCode and ""access to this account is disabled")

starting with the 3.5b7 version

0 new messages