I have two classes Person and student. There is Gen-Spec relation between them. i.e. the student class inherits from person class and person class is made a Java bean. Now in the JSP page I want to get the property of Person class through Student object.
The page gives the following error when I do that:
org.apache.jasper.JasperException: Cannot find any information on property 'fullName' in a bean of type 'Student'
I dont know why this error is occuring. One possible reason come in my mind is that since the fullName property is in Person class and Student class inherit the Person class so the IDE is not considoring the Person as Bean object so, Ive made the Person class also a Bean object. And inherit the Student bean object to person bean object but still this error occur. Please help me in resolving this error and guide me what I should do. Is this heppening due to inherutance.
The tamplet code is shown below
Public class Person implements Serializable
Private String fullName;
//relevant setter and getter menthods
Public class Stundent extends Person implements Serializable
Private String level;