I'm trying to access a bean class that resides in a helper class
In that helper class I have a getter method to access that Bean.
What I'm doing is that storing the helper class itself in a session
as this does:
class ControllerHelper extends BaseHelper {
protected RequestData data = new RequestData();
public Object getDataBean() {
return dataBean;
}
public void chProcessRequest() throws ServletException, IOException {
request.getSession().setAttribute("helper", this);
...
}
}
And in my Jsp files I try to access the bean using EL statement,
like this:
${helper.dataBean.hobby}
but when I try to run the program , I receive his error message:
javax.el.PropertyNotFoundException: The class
'ch3.reorganised.ControllerHelper' does not have a readable property
'dataBean'
more explanation is that I'm using goldfish servlet engine.