aspose file tools*
The moose likes Struts and the fly likes CRUD operaton using Struts2, Springframework and Hibernate. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
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: 266
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: 8866
    
    8

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://aspose.com/file-tools
 
subject: CRUD operaton using Struts2, Springframework and Hibernate.