I’m new to JSP/JSF and I’ve run into a problem with my JSP.
I have several tags that look like this:
<div class="summary">
<h:outputText escape="false"
value="#{FrequencyDistManagedBean.summary}"/>
</div>
But when I view the jsp in my browser, I get this:
<div class="summary">
#{FrequencyDistManagedBean.summary}
</div>
It parses the h:outputText part, but not the hash/curly braces part. It doesn’t mater what I put for the value, it never gets parsed. No errors logged, it just doesn’t work. I can even put #{foo.bar} (expecting it to fail with some kind of error) and it makes no difference.
I have the faces servlet mapped to /faces/* (or whatever the default is), and my urls look like: http://www.mysite.com:8080/MyProject/faces/FrequencyDist.jsp (I’m running Tomcat 6, and using JSF 1.2)
What am I doing wrong ?
Per this older SO question, change your web.xml file’s version to 2.5:
Also set
<faces-config ... version="1.2">Googling for
jsf not evaluating el expressionput that link at the top of the search results.Not related to your immediate problem, but you’ll run right into this soon:
Verify your use of the controller bean name; I’m referring to the upper-case
Fat the beginning ofFrequencyDistManagedBean. By default bean names always begin with lower-case letters. You should follow the same convention when you explicitly name a bean.