[STRUTS] ActionForm and Date fields

H

Hamvil

Hello,

I have a problem in developing an application that use the struts frameswork.

Basically I have a formBean with some properties that are Date object:

public class PersonBean
extends ValidatorForm {

private String name;
private Date birthDate;

....

}

When the associated form is submitted the following exception is raised:

java.lang.IllegalArgumentException: argument type mismatch

What's wrong with this form?

Thanks in advance.
 
W

Wendy S

Hamvil said:
I have a problem in developing an application that use the struts
frameswork.

Basically I have a formBean with some properties that are Date object:

Use Strings for your form properties. Otherwise how will you validate and
re-display incorrect user input?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top