This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have 2 tables in the database (airports and stopovers).
I wrote a SQL join query get a result set that has fields from both the tables.
In order to map the result, i created a Custom object 'VbResult'. (There is no table in the DB corresponding to this domain object)
Please find below code for Domain object, Controller and the View:
When i invoke the home page i get the exception, though i have the field ressrc in VbResult class.
(or) Is it wrong to use a custom object as VbResult - just for the sake of View , for which no table exists?
I am stuck for a long time.. What is that I am missing here! Please let me know!
I don't see a getRessrc() method on VbResult. I see a getSource() method that returns the ressrc property, but in the crazy mixed up world of JavaBeans, a property isn't a property if it doesn't have a corresponding getter method...in this case getRessrc().
Don't manually coded, if you use Eclipse just right click, select "Source" from there you can generate Getters & Setters methods automatically. You can even generate toString(), hashCode(), and equalsJ() methods.
Let's Eclipse do all the hard work and weed out all typo error, use it to it full potential.
"Your life is in your hands, to make of it what you choose."
Joined: Mar 18, 2011
Oh That was even easier.. ! Thanks
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: javax.el.PropertyNotFoundException: in the JSP page of a Spring MVC Application