I am new to Struts 2 and if anyone can help me out I would greatly appreciate it.
I am populating a select box with a list of job titles. After posting the form I want to the list to remember the previous selection. (Ridiculously simple stuff right?) But, I am missing something because after the form is submitted the list is always reset. This is the code I have for the select box: <s:select label="Title" name="title" tooltip="Please select your job title" headerKey="0" headerValue="Select Title" listValue="titleName" listKey="name" list="titleList" value="selectedTitle" required="true" /> titleList is an ArrayList and it populates the options fine. I am implementing the 'preparable" interface in my action bean and populating titleList in the prepare() method. Thanks for any help you can give - -- View this message in context: http://www.nabble.com/How-to-pre-select-options-in-%3Cs%3Aselect-tag---tp15434034p15434034.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]