I'm new to the struts 2. I have a class action made the bean data from JSP page The problem is that I have some non 'string When driven model is implemented to-action class executes, it is a runtime exception runs is there any written to me I think your problem is conversion i.e. your conversion from conversion For example, to convert the Let me know if you have a problem applying it. ModelDriven Interface
properties such as long
, date in the bean ... etc. The problem is: when I jsp Pressing on the submit button in the page, I get an error saying that string setter was not found for that particular asset. For example, if I have my bean then
Package com.hsms.aseza.entering Apiprovl class would do Approvl private on approval date of Krenprapti date () {Return employeeId; } Zero SetApploded Date (Date Employee ID) {this.employeeId = employeeId; }
java.lang .NoSuchMethodException: com.hsms.aseza.enteringApproval.EnteringApproval.setApprovalDate ([Ljava.lang.String;)
date property?
java.util.Date The object is expanded which is responsible for converting strings from other types like long, double etc. If you check the source code for you, you can either go to
java.util.Date or
java.sql.Date . So I think what you should do is write the converter for
acceptance date . I will guide you on this process, you just need to edit the code to meet your needs. The
convertFromString method of your converter and display your date in your JSP with the return of their conversion Is used for.
java.util.Date or
java.sql.Date .
Comments
Post a Comment