• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

CRUD operaton using Struts2, Springframework and Hibernate.

 
Ranch Hand
Posts: 280
  • 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.
 
Bartender
Posts: 9559
12
Mac OS X Linux 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
Boost this thread!