struts1使用select标签

来源:互联网 发布:最优化理论的实际应用 编辑:程序博客网 时间:2024/05/22 02:18

今天使用struts1标签的时候总是出错,后来查了一下,好像不能和什么标签混用。就只用了html原来的标签实现

<select name="newsType_id"><logic:iterate id="newsType" name="newsTypeList" scope="request">    <option value="<bean:write name="newsType" property="id"/>"><bean:write name="newsType" property="type"/></option></logic:iterate></select>
struts1的HTML标签库总是报错

<html:select property="newsType_id">    <html:options property="id" collection="newsTypeList" labelProperty="type"/>                 </html:select>



问题留待解决。。。

0 0
原创粉丝点击