各位朋友,我想把JSP也面的JAVA代码用STRUTS标签来表示,但老是显示不出来.我到了GOOGLE上搜索了资料,也翻阅了文档都没有能够解决.望各位朋友能给我提出建议.谢谢.代码如下:
<logic:iterate id="meal" name="list" scope="request">
<logic:notEmpty name="meal" scope="request">
<logic:iterate id="orderHistorys" name="meal" property="orderHistorys" scope="request">
<logic:notEmpty name="orderHistorys" scope="request">
<logic:iterate id="oh" name="orderHistorys" scope="request">
<tr>
<td>
<a
href="findRestaurant.do?ruid=${meal.restaurant.ruid}&method=findRestaurant"
target="_blank">${meal.restaurant.restName}
</a>
</td>
<td>
<a
href="mealcomment.do?method=mealcomment&muid=${meal.muid}"
target="_blank">${meal.mealName}</a>
</td>
<td>
${meal.singlePrice}
</td>
<td>
${oh.num}
</td>
<td>
${oh.employee.fullName}
</td>
<td>
${oh.createdDate}
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
</logic:iterate>
</logic:notEmpty> </logic:iterate>
<logic:iterate id="meal" name="list" scope="request">
<logic:notEmpty name="meal" scope="request">
<logic:iterate id="orderHistorys" name="meal" property="orderHistorys" scope="request">
<logic:notEmpty name="orderHistorys" scope="request">
<logic:iterate id="oh" name="orderHistorys" scope="request">
<tr>
<td>
<a
href="findRestaurant.do?ruid=${meal.restaurant.ruid}&method=findRestaurant"
target="_blank">${meal.restaurant.restName}
</a>
</td>
<td>
<a
href="mealcomment.do?method=mealcomment&muid=${meal.muid}"
target="_blank">${meal.mealName}</a>
</td>
<td>
${meal.singlePrice}
</td>
<td>
${oh.num}
</td>
<td>
${oh.employee.fullName}
</td>
<td>
${oh.createdDate}
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
</logic:iterate>
</logic:notEmpty> </logic:iterate>
解决方案 »
- 无法查询到数据库中存在的记录
- Hibernate分页,各位有什么经验,进来分享一下啊。
- java字符串匹配
- tomcat5.5虚拟目录配置问题!
- 阿赖的XML目录树很好啊.可惜是ASP的,想要个JSP的,有人有吗?----100分求----,谢谢
- 求教:如何在JSP页面中接受用户输入的日期,并把它写进数据库呢?
- 请教高手在TOMCAT运行JSP+JaveBean,TOMCAT竟然会自动关闭的怪问题!
- 请教大家一个问题,为什么不需要覆盖service方法?
- 请问如何实现:用java把数据库的报表数据取出来,然后在客户端的浏览器调用Excel显示出来
- 一个似乎很简单的问题,表单的大小能不能控制的,那我这个表单怎么老是那么大的阿??呜呜。。这是一个html的bug。。。
- 急啊~~~~~~~~~~~~~~~~~~org.apache.jasper.JasperException
- ajax 他妈的奇怪...............................
给你点代码:你看看就知道了.
<%@ page language="java" pageEncoding="UTF-8"%><%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<logic:present name="guide">
<logic:notEmpty name="guide">
<logic:iterate id="gui" name="guide">
>><span class="h3"><bean:write name="gui" filter="false"/></span>
</logic:iterate>
</logic:notEmpty>
</logic:present>