<s:select id="rankID" name="ranks" list="{'aa','bb','cc'}" value='bb' multiple="true" > </s:select>
<s:select name="dateField" id="dateField" list="#{'a':'时间1','b':'时间2'}" istKey="key" listValue="value" value="b" multiple="true"></s:select>
上面这两个select,为什么value不能设置select的默认值?
------解决方案--------------------
<s:select id="rankID" name="ranks" list="{'aa','bb','cc'}" value='{"bb"}' multiple="true" > </s:select>
<s:select name="dateField" id="dateField" list="#{'a':'时间1','b':'时间2'}" istKey="key" listValue="value" value='{"b"}' multiple="true"></s:select>