Hi, I just had a quick look at the example. Works fine for the book shop. But you should keep in mind that pushing businessobjects to view is not what MVC indented even if nested inside an ActionForm. Your ActionForms should only contain String types. Since this is the type method GET/POST is gonna deliver to you. All other types might not get populated (e.g if you want to collect a number from a text field) and then you can't validate.
I made the same mistake in a recent project with a quiet large entity relationship. It was so attempting since you don't have to maintain ActionForms and an extra set of businessobjects. But it is actually more clean and you can have a tighter binding of data/functions e.g. like someBook.store() Regards Nils -----Original Message----- From: Sebastian Hennebrueder [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 10:36 AM To: Struts Users Mailing List Subject: Re: Hibernate Struts Example You may also try this one. Sorry, that it was unfindable. ;-) http://www.laliluna.de/struts-hibernate-integration-tutorial-en.html Regards Sebastian Hennebrueder ---- http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Daniel Watrous wrote: > I have written a very simple shopcart application using Struts and > Hibernate. I looked quite a bit for a decent tutorial and example but > found nothing, so I put this together. For anyone else wondering how > to integrate Hibernate and Struts, here is an example: > > http://www.simplecart.org > > The source is available under a BSD license. THIS IS NOT PRODUCTION > QUALITY SOFTWARE. It is simply for learning, which is why I did it. > Hopefully it is useful to someone more than me! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]