I am trying to configure a default value for a radio button as done by
Ted Husted on - http://www.jguru.com/faq/view.jsp?EID=1028442
My action has:
ArrayList shippers = new ArrayList();
shippers.add(new LabelValueBean("UPS", "UPS"));
shippers.add(new LabelValueBean("Federal Express", "FEDX"));
shippers.add(new LabelValueBean("AirBorne", "AIRB"));
request.setAttribute ("SHIPPERS",shippers);
request.setAttribute ("expectedVia","UPS");
and struts config for this dynaactionform is
<form-property name="expectedVia"
type="java.lang.String">
</form-property>
and in the jsp:
<logic:iterate id="row" name="SHIPPERS">
<html:radio property="expectedVia" value="row" />
<bean:write name="row" property="label"/>
</logic:iterate>
I just can't figure out how to get UPS as the default radio button
selected. Any suggestions?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]