velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wgl...@forio.com>
Subject Re: Conversion Problem.
Date Wed, 21 Jan 2004 15:08:30 GMT
surely you're joking.  Velocity's pretty strict about types, actually.  Try
comparing a String to an  integer, or a String to a StringBuffer.  It just
silently fails.

I've a tool in the context to do this kind of conversion

$Lib.integer

with method overloading to take a String, double, or Object.

WILL

----- Original Message ----- 
From: "Geir Magnusson Jr" <geir@4quarters.com>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Wednesday, January 21, 2004 4:31 AM
Subject: Re: Conversion Problem.


>
> On Jan 21, 2004, at 2:50 AM, Raman Jee wrote:
>
> > Hi,
> > How type conversion handled in VTL.
> > Is it possible to convert from Sting to Integer. ??
>
> There is no notion of 'type', really, but to give an smarter answer
> than that, we'd need to see an example of what you are trying to do.
>
> geir
>
> >
> > Regards
> > Raman Jee Mishra
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> > http://hotjobs.sweepstakes.yahoo.com/signingbonus
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
> >
> -- 
> Geir Magnusson Jr                                   203-247-1713(m)
> geir@4quarters.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>


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


Mime
View raw message