This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes CRUD operaton using Struts2, Springframework and Hibernate. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "CRUD operaton using Struts2, Springframework and Hibernate. " Watch "CRUD operaton using Struts2, Springframework and Hibernate. " New topic
Author

CRUD operaton using Struts2, Springframework and Hibernate.

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 227
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

Joined: Oct 29, 2001
Posts: 8264

Have you looked at the CRUD demo in the Struts documentation? There are other examples that tie in Spring and Hibernate as well.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: CRUD operaton using Struts2, Springframework and Hibernate.
 
Similar Threads
In struts2
struts2 problem
Struts2 CRUD(Model Driven) Update
Struts2/JQuery
form validation in struts2