cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Tanzmann" <>
Subject AW: Problem with FlowScript
Date Wed, 11 May 2005 08:48:33 GMT
Hi John,

I will call the property "length" of a String Object and not a function
xxx.length(). But I try your suggestion but it dont work too. I have no
error message, my problem is, when I send a password with a length
smaller than 5 letters I must come into this if loop but nothing do.


-----Urspr√ľngliche Nachricht-----
Von: John L. Webber [] 
Gesendet: Mittwoch, 11. Mai 2005 09:25
Betreff: Re: Problem with FlowScript

Hi Christian,

It would help if you could include any error messages, or explain exacly
what doesn't work. Taking a quick look at your code, I see an error:

> if (pwd1.length < 5)

should probably be
if (pwd1.length() < 5)

If that doesn't fix your problem, please give us some more information.



Christian Tanzmann wrote:
> Hi,
> I will control the length of a requested String object in a FlowScript

> but it dont function. Here the example:
> var pwd1 = new String();
> pwd1 = cocoon.request.get("password1");
> if (pwd1.length < 5)
> {
>       var message = "Password to short!"
> 	cocoon.sendPage("view/editUserAccount" + EXT, {message:
> message});
> }
> Please help me, what is false.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message