我在JSP中有下面的代码。问题是,当我运行此代码,我得到以下例外:OptionTag类型中的方法setValue(String)不适用于参数(Object)
The method setValue(String) in the type OptionTag is not applicable for the arguments (Object).
有没有人有想法?
<html:select property="selectedServices" name="specificStoreForm" multiple="true" styleClass="services">
<logic:iterate id="service" name="services" property="selectedServices">
<bean:define id="textVal" name="service" property="value" toScope="request"/>
<html:option value="<%=textVal%>">
<bean:write name="service" property="label"/>
</html:option>
</logic:iterate>
</html:select>
的异常,因为我加入代码更改像”> – Narayan