tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "::SammyRulez::" <sammyru...@gmail.com>
Subject Re: Jstl function
Date Thu, 26 May 2005 13:14:53 GMT
make a tld with a tag like this

<function>
  <name>ceil</name>
  <function-class>java.lang.Math</function-class>
  <function-signature>double ceil( double)</function-signature>
</function>

and in your jsp (assuming you have mapped the tld as "/functions")

<%@ taglib uri="/functions" prefix="f" %> 
...
${f:ceil(your_number_var)}


 


On 5/26/05, Dominguez Valle Carolina <cdominguez@sopragroup.com> wrote:
> Hi, Is there a way to call the Math function "ceil" with the EL on a JSP??
> 
> regards.
> 
> Carolina
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
> 


-- 
::SammyRulez::
http://sammyprojectz.blogspot.com

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


Mime
View raw message