wood burning stoves
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

Struts2 CRUD(Model Driven) Update

Girish Wakure

Joined: Apr 14, 2010
Posts: 28
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

Joined: Aug 03, 2008
Posts: 9405

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

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Struts2 CRUD(Model Driven) Update
It's not a secret anymore!