File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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


please help

thanks in advance
Ankit Garg

Joined: Aug 03, 2008
Posts: 9465

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:
subject: Struts2 CRUD(Model Driven) Update
It's not a secret anymore!