This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Spring-struts-hibernate commit problem! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring-struts-hibernate commit problem!" Watch "Spring-struts-hibernate commit problem!" New topic

Spring-struts-hibernate commit problem!

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
I have been following this tutorial to do Struts/Spring/hibernate integration

Hibernate 3
Spring 2.5
Struts 1.2

The flow goes throw and I get the success page to add employee but the data has not been inserted. I feel that commit is not happening. I appreciate your help.

here is my

StrutsAction class

My Implementation class

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
hibernate.connection.autocommit = true
with this my data is commiting to database but Hibernate does not recommend the above property. why am I unable to commit without the above statement?

Please can anyone help me?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Spring-struts-hibernate commit problem!
It's not a secret anymore!