Spring Hibernate JSP Insert Error -


i'm trying insert database table, set hibernate/spring, , i'm getting following error

the class 'layouts' not have property 'subjectname'

the error coming line

input type="text" name="subjectname" size="50" value="${fn:escapexml(layout.subjectname)}"

but have subjectname defined in 'layouts' model file string, , in hbm.xml file as

property name="subjectname" type="string" column="subject"/

i can't select form database, although it's not giving error. feel coming same root problem

since hibernate relies on convention, i'd check make sure property name "subjectname", not "subjectname".

java's coding conventions , java bean standards member names should start lower case character , provide getter/setter access. private data member "foo" have "getfoo" , "setfoo" methods.

are using hibernate field or property access? i'd recommend field access.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -