Development Enviroment: Struts, Hibernate (MyEclipse), Oracle 9i,
Tomcat 5.0.28
Question 1: I have a
jsp page with a form on it, that contains a date text field:
This attribute comes from a colum in a database table, automatically mapped by Hibernate into a persistent class where it's declared as public Date geboortedatum with its proper getter and setter.
When I submit I get the bean Populate, mismatched argument type, Native Method exception:
When I remove the text field and submit, all goes well inserting a NULL value in the geboortedatum table column, but when the text field is on the page and I submit REGARDLESS of inserting a value or not in it, it gives me the error.
I'm guessing here it has something to do with date formatting/type but I don't know for sure. Something almost like parsing an int to a
string kinda thing? I got other fields that are declared as longs and ints and that goes all well, no converting needed, cause it's all properly mapped in the hibernate xml file. So I'm not sure about this one.
Question 2: About dropdown menu's in jsp w/ (struts)tags...
I've been eating my head off on this one. I only manage to get this text area kinda thing with the values in it (all shown) and being able to select multiple values in that list.
I just want a normal drop down list. So can someone please post a good working example for this (dynamic)? I can only find good javascript examples, but if possible I'd like to prevent using javascript for that.