insert a date field mysql, struts2 spring hibernate -


i'm working on project using spring hibernate struts2 framework , mysql database, have problem when wanted add field of type date not work, means when try insert date field, sends me error:

warning: error setting value ognl.methodfailedexception: method "setdate_panne" failed object model.panne @ 1d055e2 [java.lang.nosuchmethodexception: setdate_panne ([ljava.lang.string;)]  / - encapsulated exception ------------ \ java.lang.nosuchmethodexception: setdate_panne ([ljava.lang.string;) 

nb: (date_panne -> date fields) , setdate_panne setter attribute. date_panne of type date

apparently problem struts2 has taken date string thing should not do.

i not know how convert , where?

i have been working struts 2 , have run ognl exception few times. seems happen when have control on jsp, such input checkbox named "checkbox", , method controller (java class, not jsp) named "setcheckbox()". somehow, behind scenes, struts 2 or ognl generating naming conflict , unable execute correct method. renaming either control on jsp (from example "checkbox" "checkbox1") or renaming method controller should solve issue. let me know if did not elaborate enough. hope helps.

regards,

nick


Comments

Popular posts from this blog

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -