There are lot's of ways to accomplish this, but here is a sample of how to call your bean setters in a way that is reusable across all beans.
So in your servlet or portlet, you do something like...
In order for this to work...you'll need to set the name attribute on your input elements to the corresponding name of your bean..
For example, your JSP might look like...
Hope these few examples will give you some idea of what to do. Good luck!
Joined: Feb 09, 2006
If your using a ORM solution, you might look through the API's of your specific ORM vendor. They often have solutions for your question. Hibernate works well in this scenario, and IMO it's also good to understand what's happining under the hood.