I have this unusual scenario:
I have a VO registration with several properties and getter settings for this. For example, cityor bCitywith their methods of obtaining getCity()andgetBCity()
In JSP, I tried to display the value of these properties using scripts,
<%=registrationVO.getCity()%>and < %=registrationVO.getBCity()%>, it works fine. But I replaced the expression language,
${registrationVO.city}and ${registrationVO.bCity}
I got an error stating that the "bCity" property was not found in the VO registration. I used scriplet for bCity again, I got the result.
I noticed that this is due to the naming convention. "If the second character of the property is the letter Capital, we cannot use the language of expressions." I tried with many differences, this is what I learned.
Please check this scenario, I do not know how right or wrong I am.
Thanks DJ
source
share