JSTL Error: Unable to find a value for property in object of class using operator “.”

September 30th, 2009 in Errors, Java Errors. Add comment
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Problem: You get this error while trying to access a property of an object in JSTL but you are absolutely sure that the property is present in the Class.

Solution: It is likely that the culprit is your getter method for the property or the way you are trying to access it in JSTL . This usually occurs if your property name or your getter method has more than one consecutive letter in caps.
Say your bean is BeanA with a property called usProperty. If your getter method is getUSProperty() and in the JSTL you have something like ${beanA.usProperty}, then this will fail. Either set the getter to something like getUsProperty() OR change the JSTL to read: ${classA.USProperty}

Tags:

Leave a Reply

Sponsors