Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CRUD operaton using Struts2, Springframework and Hibernate.

 
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
To do a great right, do a little wrong - shakepeare. twisted little ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic