I am trying to call method using custom EL function with perameter of jsfbean.
<c:set var="test1" value="${cx:methodName('para')}" scope="session"/>
<h:outputText value="#{test1}"/>
i made following id TLD and putted it into WEB-INF
<?xml version="1.0" encoding="UTF-8" ?>
<taglib
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">
<tlib-version>1.0</tlib-version>
<short-name>Custom_Functions</short-name>
<uri>http://example.com/functions</uri>
<function>
<name>methodName</name>
<function-class>funcionclass(Jsfbean)</function-class>
<function-signature>java.lang.String methodName(java.lang.String)</function-signature>
</function>
</taglib>
i also configure in web.xml
<jsp-config>
<taglib>
<taglib-uri>http://example.com/functions</taglib-uri>
<taglib-location>/WEB-INF/functions.tld</taglib-location>
</taglib>
</jsp-config>
and still it is getting Function not found error.
following is method code
public static String methodName(String s1) throws Exception
{
return "Kshitij";
}
can any body help.