Hi,

I have problem with my custom converter...

I have a bean that provided get/set methods for date.

public class Person {
   ...
   private Date bornDate;
   ...
   public void setBornDate(Date bornDate) { ... }
   public Date getBorn() { ... }
}

On my jsp I have dojo input dijit.form.DateTextBox
<s:form ...>
...
<input type="text" name="model.bornDate" dojoType="dijit.form.DateTextBox"
required="true" />
...
</s:form>

Problem is that when user submit form, there is an exception
NoSuchMethodException  setBornDate(String str)
I have created my converter DateConverter that extends StrytsTypeConverter
and I have added src/main/resources/xwrork-conversation.properties (maven2
project) with mapping.

java.util.Date = org.converter.DateConverter

I don't understand if xwork-conversation.properties is loaded correctly,
because I haven't any usefully log information.

I'm using struts 2.1.8.1.

Thanks all.

Reply via email to