Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form:input type="hidden" path="timeStamp" />
- private Timestamp timeStamp;
- public final Timestamp getTimeStamp() {
- return (timeStamp == null)
- ? null : (Timestamp) timeStamp.clone();
- }
- public final void setTimeStamp(Timestamp timeStamp) {
- this.timeStamp = (timeStamp == null)
- ? null : (Timestamp) timeStamp.clone();
- }
- public final void doActionDelete(DumyBean bean, Errors errors, ActionRequest actionrequest...)
- @InitBinder
- public final void initBinder(WebDataBinder binder) {
- SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
- dateFormat.setLenient(false);
- binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, true));
- }
- "Failed to convert property value of type 'java.lang.String' to required type 'java.sql.Timestamp' for property 'timeStamp';
- nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type
- [java.sql.Timestamp] for property 'timeStamp': PropertyEditor [org.springframework.beans.propertyeditors.CustomDateEditor]
- returned inappropriate value of type [java.util.Date]
Add Comment
Please, Sign In to add comment