JSP 2.0 Expression Language - Functions


An upgrade from the JSTL expression language, the JSP 2.0 EL also allows for simple function invocation. Functions are defined by tag libraries and are implemented by a Java programmer as static methods.
Change Parameter
foo =

EL Expression Result
${param["foo"]} JSP 2.0 
${my:reverse(param["foo"])} 0.2 PSJ 
${my:reverse(my:reverse(param["foo"]))} JSP 2.0 
${my:countVowels(param["foo"])}