Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring-struts-hibernate commit problem!

 
shah rah
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been following this tutorial to do Struts/Spring/hibernate integration

http://www.ibm.com/developerworks/web/library/wa-spring2/

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




applicationContext.xml
 
shah rah
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic