You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Mauricio T. Ferraz" <ma...@cilix.com.br> on 2003/12/03 12:24:36 UTC

Validation of a property java.util.Date is possible?

In my Form a have a property java.util.Date, I can validate it ?
Or I just can have properties "Strings" ??? in my textfiels on form???

I can map a textfield of a Form HTML to a property java.util.Date of a JavaBean ???

How can I do it?



I got

 java.lang.IllegalArgumentException: argument type mismatch


Thanks, for help.
Mauricio





SV: Validation of a property java.util.Date is possible?

Posted by Håkan Fransson <hn...@ladok.umu.se>.
You can only have String and boolean types on the form. Use Struts validator
to validate.
Take a look here
http://developer.java.sun.com/developer/Books/javaprogramming/struts/struts_
chptr_12.pdf

/Hakan

-----Ursprungligt meddelande-----
Från: Mauricio T. Ferraz [mailto:mauricio.tavares@cilix.com.br]
Skickat: den 3 december 2003 12:25
Till: Struts Users Mailing List
Ämne: Validation of a property java.util.Date is possible?


In my Form a have a property java.util.Date, I can validate it ?
Or I just can have properties "Strings" ??? in my textfiels on form???

I can map a textfield of a Form HTML to a property java.util.Date of a
JavaBean ???

How can I do it?



I got

 java.lang.IllegalArgumentException: argument type mismatch


Thanks, for help.
Mauricio






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