I've come across answers for Struts 2.x but none for struts 1.x.
All I need to do is select a default value on page load using 1.x of an HTML:SELECT tag that uses an optioncollector:
<html:select property="status">
<html:optionsCollection name="statusList" label="description" value="id" />
</html:select>
Seems simple, but I'd like to avoid using javascript for this.
Have you tried to use the value
attribute on the <html:select>
tag?
<html:select property="status" value="...your status choise here...">
<html:optionsCollection name="statusList" label="description" value="id" />
</html:select>