aspose file tools*
The moose likes Struts and the fly likes Struts2 CRUD(Model Driven) Update Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 CRUD(Model Driven) Update" Watch "Struts2 CRUD(Model Driven) Update" New topic
Author

Struts2 CRUD(Model Driven) Update

Girish Wakure
Greenhorn

Joined: Apr 14, 2010
Posts: 28
Hello!
I am developing simple CRUD application using Struts2 Model Drivan Concept.

I need to update the record using session.update() method or session.saveOrupdate() method. but its not working

reference http://www.vaannila.com/struts-2/struts-2-example/struts-2-crud-example-1.html

please help

thanks in advance
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

Hi Girish, welcome to javaranch.

Girish just saying It Doesnt Work Is Useless. There can be thousands of things that could be wrong. What is the exact problems you are facing?? Are you getting any exception?? Also the problem most probably be with Hibernate and not Struts...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Girish Wakure
Greenhorn

Joined: Apr 14, 2010
Posts: 28
Thanks for reply Ankit.
my problem is solved. I was not initializing the Session object and trying to use it.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 CRUD(Model Driven) Update