Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

problem while using el statement

  Asked By: Kiswar    Date: Mar 20    Category: Java    Views: 1083
  

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.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Lu Fischer     Answered On: Mar 20

The helper class  must be public

 
Didn't find what you were looking for? Find more on problem while using el statement Or get search suggestion and latest updates.




Tagged: