You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by 高 迪 <ja...@yahoo.com.cn> on 2003/12/09 07:55:05 UTC

how to parseInt in jstl using express language?

see my code as below:
<c:set var="var1" value="12"/>
<c:set var="var2" value="5"/>
<c:out value="${var1/var2}"/>

i declare 2 variables,then i want to do some
calculate.the result is 2.4 here,but my desire result
is 2.
in old jsp,i can use parseInt() method to parse the
variable first.but how to do it in jstl?
i know it maybe a easy problem,but it really confuse
me,i am a newbie in jstl.i have checked sun's jstl
specification and can't find solution either.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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