org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: No getter method available for property propertyName for bean under name org.apache.struts.taglib.html.BEAN
Solution:
1)According to java naming conventions all the variable names and property names should start with lower letter and the firstletter of the words following should start with capital letter.
2) Coming to beans it creates getter and setter methods by changing the first letter of the property name as capital letter.
eg: for firstName it creates getFirstName and setFirstName.
Here all the letters are lower letters except the first letter from the second word.
3)Not only the first letter of the attribute should be small but also the second letter of the attribute of the bean.
eg:A property name like "bVarName" will fail.
But if you use bvarName it will work.
1)According to java naming conventions all the variable names and property names should start with lower letter and the firstletter of the words following should start with capital letter.
2) Coming to beans it creates getter and setter methods by changing the first letter of the property name as capital letter.
eg: for firstName it creates getFirstName and setFirstName.
Here all the letters are lower letters except the first letter from the second word.
3)Not only the first letter of the attribute should be small but also the second letter of the attribute of the bean.
eg:A property name like "bVarName" will fail.
But if you use bvarName it will work.
Comments
Post a Comment