I'm trying to create an "Hello World" JSF application. I have a bean with one field (String).
@ManagedBean (name = "beanTest")
@SessionScoped
public class BeanTest
{
private String myString = "myString";
public String getMyString()
{
return myString;
}
public void setMyString(String myString)
{
this.myString = myString;
}
}
When I'm trying to display the string value in my JSP page
<h:outputLabel value="#{beanTest.myString}"/>
In the webpage it displayed "#{beanTest.myString}"
instead of "myString"
How is this caused and how can I solve it?