I can't figure out how to show that a value is "selected" on an option list. I know that "selected" is not supported and that the "path" should be bound to the value. I'm not sure what this entirely means but I thought in my controller if I set the value of the "path" it would automagically be set within the form. But, because I am doing something a little less than normal I'm figuring that I have something messed up. This is what I have do far:
Here's a snippet of my controller.
Here is my jsp page:
The path "movieid" corresponds to the MovieTimeslot id for the MovieTimeslot object which contains the timeslotid, movieid, showtime, theaterId. So, I don't know how to show that one of my movie options is "selected" based on my controller which finds the movie object if an editId exists.
Any suggestions would be appreciated.
Joined: Feb 10, 2009
What I found worked for me was to change things around in my jsp nd use the <spring:bind> tag instead of <form> tags