This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Im having problems accessing beans from OGNL. It always returns null in the view page. The setters & getters in the actions seem to be working fine when I do a System.out.print. Ill bet Ive tried 100 different ways to access the bean but it always fails. Can anyone shed any lite on this?
Joined: Aug 27, 2010
Just a quick clarification on what I am trying to accomplish here. I have a site that will have 3 parts for people. A person can be a candidate, client or a customer. All three people types will have the exact same setters / getters. So instead of writing setters / getters in all the Actions for all three person sections of the website I want 1 bean that contains all the setters and getters for a person.
Now the Action will create a new instance of the bean, set/get then the view will pull the values the action set. If I put my setters/getters in the Action the OGNL works fine on the view page. But if I try and have a common bean that is initialized from the action OGNL does not seem to want to pull the values set into the view.