Hello all, I have been trying to access a bean from a JSP page. I want to know how the property attribute takes the attribute value from the bean. Does it take the property from getXXX or setXXX. If so then i think XXX will be the property or it takes the value of the variable we use. Explain me about the property attribute in detail. Your help is very much appreciated.
For every property, the class must have two publicly accessible methods, referred to as the getter and the setter, that allow the JSP engine to access or mutate the bean�s properties.
The name of the method that accesses the property should be getXXX() and the name of the method that mutates the property should be setXXX(), where XXX is the name of the property with the first character capitalized