<logic:iterate id="headInfo" name="customerForm" property="cusHeadListInfo.cusHeadInfo" indexId="index" offset="<%= nowPageRecOffset.toString() %>" length="<%= nowPageRecCnt.toString() %>">
<%
int pageIndex = index.intValue();
int indexMod = (pageIndex % 2);
String bgColor = "";
if (indexMod == 0) {
bgColor = "";
}
else{
bgColor = "BGCOLOR=\"#CCCCCC\"";
}
%> <TD <%=bgColor%> WIDTH="70" class="list">
<bean:write name="headInfo" property="custId"/>
</TD>
<TD <%=bgColor%> WIDTH="100" class="list">
<bean:write name="headInfo" property="lastName"/><bean:write name="headInfo" property="firstName"/>
</TD>
<TD <%=bgColor%> WIDTH="130" class="list">
<bean:write name="headInfo" property="commissionName"/>
</TD> </logic:iterate>
<%
int pageIndex = index.intValue();
int indexMod = (pageIndex % 2);
String bgColor = "";
if (indexMod == 0) {
bgColor = "";
}
else{
bgColor = "BGCOLOR=\"#CCCCCC\"";
}
%> <TD <%=bgColor%> WIDTH="70" class="list">
<bean:write name="headInfo" property="custId"/>
</TD>
<TD <%=bgColor%> WIDTH="100" class="list">
<bean:write name="headInfo" property="lastName"/><bean:write name="headInfo" property="firstName"/>
</TD>
<TD <%=bgColor%> WIDTH="130" class="list">
<bean:write name="headInfo" property="commissionName"/>
</TD> </logic:iterate>
解决方案 »
- 我的MyEclipse9.0工具栏没有服务器启动按钮。
- 新手求助!!!!!!!!!!!
- Hibernate QBE 复合查询问题
- This is how scientists see the world!
- (上传图片时)js错误:拒绝访问
- 高手救命啊!使用css 截取字符串样式后郁闷到死
- JSF提交的问题(在线等,十分火急)
- 在线急等java 中关于水晶报表的API
- 走神,没有听到到这个星号是什么意思...<jsp:setProperty name="bean0" property="*" />
- 如何得到某个指定Frame(不同进程的)某个Component(如TextBox等等)呢?
- 关于在使用struts时,对页面数据校验的问题?
- 专题:专门解决学习struts例子(struts-example.war)遇到的问题(只解决此例子的问题,其他例子勿进)
<%
int i=1;
String[] bgcolors={TD_BGCOLOR,TD_BGCOLOR2};
Iterator messages=topicBean.getMessages().iterator();
while(messages.hasNext()){
Message message=(Message)messages.next();
i=1-i;
%>
<tr class="aa">
<td bgcolor="<%=bgcolors[i]%>" valign="top" cellpadding="5">
<%=StringUtil.escapeHTMLTags(message.getU_name())%><BR>
<!-- Registered: <BR>- --><%=DateTimeUtil.shortFmt(message.getU_regtime())%>
</td>
<td bgcolor="<%=bgcolors[i]%>" >
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="aa">
<%if(message.getM_iconid()>0){%><img src="img/icons/<%=message.getM_iconid()%>.gif" width=15 height=15 border="0"><%}%>
<%=DateTimeUtil.shortFmt(message.getM_time())%>
</td> </tr>
<tr>
<td colspan="2" height="1" bgcolor="#999999" class="aa">
</td>
</tr>
<tr>
<td colspan="2" valign="top" class="aa">
<BR>
<p>
<%=StringUtil.dspHtml(message.getM_content())%>
</p> </td>
</tr>
<tr>
<td colspan="2" height="1" bgcolor="#999999">
</td>
</tr>
</table>
</td>
</tr>
<%
}
%>
<!--loop end-->