Struts标签嵌套问题~~路过的都来看一眼啊~~~~ struts默认定义的几个标签是不支持嵌套的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 那这么能完成我想要实现的功能呢?就是将 <logic:iterate id="result" name="list" type="<bean:write name="className" scope="request"/>">中的type变为动态的?? 用EL表达式语言,前提是你使用的是JSP2.0以上版本(Tomcat5.0),servlet2.4以上版本(web.xml文件头:<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">):<logic:iterate id="result" name="list" type="${className}"> something.....</logic:iterate> lip009(深蓝忧郁) 兄弟说的也不行啊~~怎么办啊? 用<logic:iterate id="result" name="list" type="<%=request.getAttribute("className")%>">肯定是可以的,是你代码的问题 <logic:iterate id="result" name="list" type="<%=request.getAttribute("className")%>">肯定是没问题的,你说的不行,不会是request里面根本没className? dwr3 在线聊天,ie下刷新页面,报错?好像遇到的人不少,有真正解决的吗?错误如下: 高分求fckeditor上传多个图片案例 jsp开发WAP网站的问题 请问AXIS2 的aar布署到TOMCAT下,如何DEBUG?? 问个问题 struts中formbean的问题 有人能详细介绍一下el表达式语言吗? 在javamail中如何读取邮件的附件内容? 急症--eclipse + tomcat 配置!!!!分不够在加。。。。。求你了,回吧!!求你。 如何在一个png 图片角上添加一个时间标签,另存为另一个png文件 myecipse导入dll 新手 Web Service 调用问题
就是将 <logic:iterate id="result" name="list" type="<bean:write name="className" scope="request"/>">
中的type变为动态的??
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
):
<logic:iterate id="result" name="list" type="${className}">
something.....
</logic:iterate>
怎么办啊?
肯定是没问题的,你说的不行,不会是request里面根本没className?