Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CRUD operaton using Struts2, Springframework and Hibernate.

 
Siddharth Bhargava
Ranch Hand
Posts: 274
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I was just trying to implement a basic CRUD operation using Struts2, Spring framwork and Hibernate. I am able to store i.e. Create the data with the help of struts2 forms but I am stuck as to how to update the data. I believe in update we would need to ask the user for the id of the record which he would like to update then we would need to show that record to the user and then the user would modify the contents of the fields and click on update button rt.?

I am in a fix here as I understand I would get the id from the user through a textfield and then on the basis of this id I would then form a hibernate query using HQL where I would fetch the records using this id. Then I need to show this record using the form. Please do help me regarding this as I am unable to show the values in the form.

Thanks and Regards,
Sid.
 
Joe Ess
Bartender
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the CRUD demo in the Struts documentation? There are other examples that tie in Spring and Hibernate as well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic