• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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
 
This cake looks terrible, but it tastes great! Now take a bite out of this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic