jsp页面set out设置和获取的OGNL标签

<c:forEach items="${list}" var="gps" varStatus="status">
										<c:set var="background" value="background:#F5F5F5;"/>
										<c:if test="${status.index%2 !=0}">
										
											<c:set var="background" value=""/>
										</c:if>
										<li style="width:672px; height:26px;border:1px solid #DBDBDB; border-top:none; <c:out value="${background}"/>">
										${status.index + 1}
										<a href="/MMCLBS/routeOperate/inquireRouteBook?routeid=${gps.routeId }">${gps.name}</a>
										<a href="/MMCLBS/routeOperate/deleteRoute?routeid=${gps.routeId }">删除经验路线</a>
										</li>
									 
									</c:forEach>

 

你可能感兴趣的:(Ognl)