Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Velocity Template String to Integer problem

843785Aug 13 2008 — edited Aug 13 2008
hi there,

how to convert String to int in Velocity Template?

i would like to compare String "100" and int 99 in velocity template, but there are always display "false"
#set ($str = "100")
#if ($str > 99)
       true
#else
       false
#end
i tried to using Inter.parseInt($str) > 99

many thz
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 10 2008
Added on Aug 13 2008
1 comment
405 views