I'm trying to convert the following scriptlet code to EL. I tried the following (below), but can't get it working. getValue() is a method off of ConfigFactory that returns a string:
In a listener, I set the configFactory as event.getServletContext().setAttribute("ConfigFactory", new ConfigFactory());
In my scriptlet code there is: (and it works fine)
<%
ConfigFactory cf = (ConfigFactory) application.getAttribute("ConfigFactory");
%>
Value from scriptlet= <%=cf.getValue()%> <br/>
EL gives me trouble:
<c:set var="cf" value="${initParam['ConfigFactory']}"/>
<c:out value="${cf.getValue}"/> <!-- try # 1 -->
<c:out value="${cf.value}"/> <!-- try # 2 -->