JSP知识1

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>

<c:if test="${param.type == 'list'}">
</c:if>


<c:forEach var="nodelist" items="${nodeList}" varStatus="index">
	<c:if test="${index.count == '2'}">
		<c:out value="${nodelist.id}"/>
	</c:if>
</c:forEach>


<c:if test="${empty(uName) || uName != 'user1'}" scope="session">
	<c:redirect url="../index.jsp" />
</c:if>


<c:if test="${not empty  picShowList}">
</c:if>


<c:out value="${User.name}"/>
<c:if test="${flag==''||flag==null}" >
</c:if>

<fmt:formatDate value="${ createDate}" pattern="yyyy-MM-dd HH:mm:ss" />


<c:choose>
  <c:when test="${bean.Id != null && (bean.Id == 1 || bean.Id == 2 ) }">
   xxxxxxxxxxxxxxxxxxxxxxxxxx
  </c:when>
  <c:otherwise>
    <c:out value='${bean.id}' />
  </c:otherwise>
</c:choose>

 

posted @ 2014-12-04 09:25  letmedown  阅读(101)  评论(0)    收藏  举报