Hi guys,
I have this 'issue' and wonder if someone can tell me if my solution is ok (I'm not content with it)
the problem is with the bean I'm creating. example:
Empl
String fname;
Date dob;
// + getter and setter
as you can see, the DOB is type date, when using the
jsp page, the code looks like this:
<html:text property="dob" />
well, I realized that this will throw an err:
Cannot invoke com.struts.domain.Emp.setDob - argument type mismatch
(JSP expects a String and I provided a Date)
my solution is this:
Empl
String fname;
Date dob;
String dobStr
(and then I replace everything in the jsp page)
this works BUT there's so much extra work and the amount of properties really gets big for no reason.
can anyone advise on a better solution (not with DynaValidatorForm)
thanks a lot