• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

spring hibernate and struts2 problem

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i'm new in java please help me if you can
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic