解决方案 »
- 如何设计一个树状结构,求思路
- ssh找不到ApplicationContext.xml配置文件 倾家荡产。。。
- 在一个类中任何给sql语句动态传递参数?(在线等.急!!!)
- 实现一个单例模式?要求线程同步、延迟加载和泛型。
- 请帮忙!Hibernate数据表中最新记录查询的问题。
- 在jdk6.0+Eclipse3.2+MyEclipse的JSF开发环境中下列语句出现错误
- 高手帮帮我啊,eclipse下的问题!群9336474专门讨论java方面的知识!欢迎加入!!
- 怎样通过eclipse+myeclipse启动tomcat 5.0
- 高分请教高手,单位的一个J2EE项目?
- 大家都把自己认为好的关于j2ee的文章地址贴出来,以便交流,我先开个头!
- 请问Tapestry在Eclipse中怎么搭建
- 请给出我的tomcat启动错误分析
一个div 的话,
如 obj姓名 年龄 姓名 年龄
obj0 obj(0+10)
obj1 obj(1+10)
<tr>
<td align="center" width="25%" class="top-bt liebiao-l" >资产</td>
<td align="center" width="5%" class="top-bt liebiao-l" >行次</td>
<td align="center" width="20%" class="top-bt liebiao-l" >期末数</td>
<td align="center" width="25%" class="top-bt liebiao-l" >负债和所有者权益(或股东权益)</td>
<td align="center" width="5%" class="top-bt liebiao-l" >行次</td>
<td align="center" width="20%" class="top-bt liebiao-l" >期末数</td>
</tr>
<c:forEach items="${list}" var="xqyzcfzbForm" varStatus="beanStatus">
<tr <c:choose><c:when test="${beanStatus.index%2==0}"></c:when>
<c:otherwise></c:otherwise></c:choose> >
<c:if test="${xqyzcfzbForm.xssxh le 30}">
<td>
${xqyzcfzbForm.xm}
<input type="hidden" name="xm" value="${xqyzcfzbForm.xm}"/>
</td>
<td align="center">
${xqyzcfzbForm.hc}
<input type="hidden" name="hc" value="${xqyzcfzbForm.hc}"/>
</td>
<td align="center">
<c:if test="${!empty xqyzcfzbForm.hc}">
<input class="input_out" onfocus="this.className='input_on';this.onmouseout=''" id="sntqlj"
onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" type="text"
chname="第${ beanStatus.index+1}行期末数" nullable="no" datatype="number"
name="sntqlj" value="${xqyzcfzbForm.qms}" onBlur="verifyInput(this);" />
<font color="#FF0000">*</font>
</c:if>
</td>
<td>
${xqyzcfzbForm.xm}
<input type="hidden" name="xm" value="${xqyzcfzbForm.xm}"/>
</td>
<td align="center">
${xqyzcfzbForm.hc}
<input type="hidden" name="hc" value="${xqyzcfzbForm.hc}"/>
</td>
<td align="center">
<c:if test="${!empty xqyzcfzbForm.hc}">
<input class="input_out" onfocus="this.className='input_on';this.onmouseout=''" id="sntqlj"
onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" type="text"
chname="第${ beanStatus.index+1}行期末数" nullable="no" datatype="number"
name="sntqlj" value="${xqyzcfzbForm.qms}" onBlur="verifyInput(this);" />
<font color="#FF0000">*</font>
</c:if>
</td>
</c:if>
</tr>
</c:forEach>
这样写只能显示前面显示顺序号(xssxh)的前30个,我要把后面的三十个显示在后边的三列。
<%
Map<String, String> map = new LinkedHashMap<String, String>();
for(int i=0;i<20;i++){
map.put(String.valueOf(i), "name"+i);
}
request.setAttribute("map", map);
%>
<table>
<tr>
<th>Key1</th>
<th>Value1</th>
<th>Key2</th>
<th>Value2</th>
</tr>
<c:forEach var="entry" items="<%= map %>" begin="0" end="9" varStatus="s" >
<tr>
<td><c:out value="${entry.key}"/></td>
<td><c:out value="${entry.value}"/></td>
<c:forEach var="o" items="<%= map %>" begin="${s.index+10}" end="${s.index+10}" >
<td><c:out value="${o.key}"/></td>
<td><c:out value="${o.value}"/></td>
</c:forEach>
</tr>
</c:forEach>
</table>