String[] titleArray={"对象类别","所属市","所属区县","姓名","身份证号"};
request.setAttribute("titleArray", titleArray);

 jsp

<c:forEach var="title" items="${titleArray}" varStatus="ctIndex">
	<td width="14%" align="center" valign="middle" bgcolor="#ecf6ff">
		<c:out value="${title}"/>
	</td>
</c:forEach>	

 

你可能感兴趣的:(foreach)