Hi, I have this unusual scenario:
I have a registrationVO with few properties and getter setters for that.
For example city
or bCity
with their getter methods getCity()
and getBCity()
In JSP i tried to display the value of these properties using scriplets,
<%=registrationVO.getCity()%>
and <%=registrationVO.getBCity()%>
, It works fine.
But i replaced the same with expression language,
${registrationVO.city}
and ${registrationVO.bCity}
i got an error saying property "bCity" not found in registrationVO.
i a used scriplet again for bCity, i got the output.
I observed that its because of the naming convention. "If the second character of the property is a Capital letter we cant use Expression Language". I have tried with many diff namings, this is what i found out.
Please check this scenario, I don't know wether my conclusion is right or wrong.
Thanks, DJ