• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!