• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 CRUD(Model Driven) Update

 
Girish Wakure
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Girish Wakure
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply Ankit.
my problem is solved. I was not initializing the Session object and trying to use it.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic