原来的代码是用不同的标签显示的
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<c:choose>
<c:when test="${payinfoList==null || payinfoList.size()==0 }">
<tr height="30"><td align="center" style="border:1 solid">缴费后,您发布信息就可在这里显示!</td></tr>
</c:when>
<c:otherwise>
<c:forEach var="payinfo" items="${payinfoList }" varStatus="status">
<c:if test="${status.index%2==0 }">
<tr height="23">
</c:if>
<td width="50%">『<b>${payinfo.typeName }</b>』<a href="">${payinfo.title }</a></td>
<c:if test="${status.index%2==1 }">
</tr>
</c:if>
</c:forEach>
</c:otherwise>
</c:choose>
</table>这个可以显示内容。为什么我用struts-tags显示就不行呢?如果可以怎么修改?谢谢!!
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<c:choose>
<c:when test="${payinfoList==null || payinfoList.size()==0 }">
<tr height="30"><td align="center" style="border:1 solid">缴费后,您发布信息就可在这里显示!</td></tr>
</c:when>
<c:otherwise>
<c:forEach var="payinfo" items="${payinfoList }" varStatus="status">
<c:if test="${status.index%2==0 }">
<tr height="23">
</c:if>
<td width="50%">『<b>${payinfo.typeName }</b>』<a href="">${payinfo.title }</a></td>
<c:if test="${status.index%2==1 }">
</tr>
</c:if>
</c:forEach>
</c:otherwise>
</c:choose>
</table>这个可以显示内容。为什么我用struts-tags显示就不行呢?如果可以怎么修改?谢谢!!
解决方案 »
- 【新手】ssh实现的简单的通过密保问题找回密码的功能
- Aptana Studio汉化
- JSP500错误,找了好久都没找到原因,求大家帮忙看下
- 如何获取sqlserver2005的自增主键值?
- 从新生成页面
- Error starting modern compiler
- cmd启动tomcat可以显示jsp页面,myeclipse启动tomcat不能显示jsp页面?
- 这是什么??????????????
- 100分求难题答案
- 简单问题,请你一答!
- 新手求教,Entity报错
- struts2国际化的时候,网页的网址里边loginForm.jsp?request_locale=en_US,但是页面还是中文是怎么回事?
这里value 的取值有问题,看payforlist性质