struts1使用select标签

今天使用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>



问题留待解决。。。

原文地址:https://www.cnblogs.com/yan456jie/p/5369563.html