Thank you very much!
But as it seems the value is never set.
I created both getters and setters for personKey in my Action class, as you said.
I didn't create any for Person since I have no use for the names in my action class.
Sadly it doesn't seem like the value which is selected when I press Save is actually set in my Action class.
Something does happen because the listValue returns an empty
String instead of a null but the listKey doesn't call setPersonKey in my Action class at all..
I'll post the code below:
CreateReservationAction.java
I'm aware that the code isn't pretty, and I'm not planning on keeping it. I'm just trying to see if it'll work to create a Reservation. Once it's working I'll refine the code.
AddReservation.jsp
I've checked and rechecked that the "name" values match the getter and setter names, so that shouldn't be the issue.
Appreciate the help
Regards
Alia