我在页面把一些变量同struts标签封装在一起,然后在页面拿出来 生成<html:option></html:option>
但是在页面只有value的输出 好像struts的标签都被过滤掉了 请问何解啊
代码如下
<%
StringBuffer html=new StringBuffer();
html.append("<html:option value='1'>1</html:option>");
html.append("<html:option value='2'>3</html:option>");
%>
<body>
This is my JSP page. <br>
<html:form action="ny.do">
<html:select property="parentnewstype">
<%=html.toString() %>
</html:select>
</html:form>
</body>
但是在页面只有value的输出 好像struts的标签都被过滤掉了 请问何解啊
代码如下
<%
StringBuffer html=new StringBuffer();
html.append("<html:option value='1'>1</html:option>");
html.append("<html:option value='2'>3</html:option>");
%>
<body>
This is my JSP page. <br>
<html:form action="ny.do">
<html:select property="parentnewstype">
<%=html.toString() %>
</html:select>
</html:form>
</body>