cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Tanzmann" <christian.tanzm...@t-online.de>
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.

Christian

-----Urspr√ľngliche Nachricht-----
Von: John L. Webber [mailto:john.webber@jentro.com] 
Gesendet: Mittwoch, 11. Mai 2005 09:25
An: users@cocoon.apache.org
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.

Regards,

John

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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message