Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

spring hibernate and struts2 problem

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello All

i have a problem in insert into database in my project i used spring hibernate and struts2 in my project. when i click on submit button insert action done well but when i check my database just one field inserted (name ) for another fields just insert 0 and Null can any one help me???



createClassType.jsp




struts.xml



ClassTypeAction.java


ClassTypeService.java





ClassTypeDao.java



spring-dao.xml



hibernate.cfg.xml



web.xml


applicationContext.xml




is there any example like this ?

thanks in advance
 
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the declarations in the entity?

Also, do some little bit of debugging of your own. Print out values of the objects before calling the save to try and pin point where the problem is.
 
mehdi chorsi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

E Armitage wrote:What are the declarations in the entity?

Also, do some little bit of debugging of your own. Print out values of the objects before calling the save to try and pin point where the problem is.




sorry i forgot entity class

this is my entity class

 
mehdi chorsi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm new in java please help me if you can
 
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!