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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 9291

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 agree. Here's the link: http://aspose.com/file-tools
subject: Struts2 CRUD(Model Driven) Update
Similar Threads
Struts2 valuestack error
Introducing Spring in Struts2 Project
Struts2 - multi languages
struts2 + interceptor
Struts2:Conditional visitor validator not conditional