Hi and thanks for answer,

I have tried to use annotation, but don't work, error message is the same:

Error setting expression 'model.dataMandato' with value '[Ljava.lang.String;@2d2da4' ognl.MethodFailedException: Method "setDataMandato" failed for object org.storage.mandati.mand...@18bff68 [java.lang.NoSuchMethodException: org.storage.mandati.Mandato.setDataMandato([Ljava.lang.String;)]

My bean have:

   public Date getDataMandato() { return dataMandato; }
@TypeConversion(converter="org.common.struts2.dataconverter.DateConverter") public void setDataMandato(Date dataMandato) { this.dataMandato = dataMandato; }

Note: Bean is into a jar, into a package org.storage.mandati
converter is into src/main/java/org.common.struts2.dataconverter.DateConverter

I have try it with different bean that I have into my project.

Thanks.

Lukasz Lenart wrote:
2009/12/16 Donato Pirozzi <donatopiro...@gmail.com>:
Did you try to use annotations?

@TypeConversion(converter = "org.demo.DateConverter")
public void setDateNow(Date now) { this.now = now; }


Regards


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to