velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis <j...@respublica.fr>
Subject Re: datatype problem
Date Wed, 20 Mar 2002 17:03:36 GMT
Hi Tom,

On Wednesday, March 20, 2002, at 02:28  pm, Tom Bednarz wrote:

> #set ($Permission = $request.getParameter("Permission"))
>
> I guess $Permission is now a STRING and not an INTEGER anymore 
> sinced the
> following is NEVER true:
>
> #foreach ($x in [1..3])
>     #if ($x != $Permission)

Since $Permission is a String shouldn't you compare using:

    #if ($x.toString() != $Permission)


-- Denis.


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message