1. Use el expression to take parameters in js
var ar = "${xxbean.area }";
2. Use el expression to take parameters in jsp
Customer number: ${xxbean.num }
3. Common el expressions
--------c:choose------------------
<c:choose>
<c:when test="${xxbean.area == 'LN'}"> 辽宁xxx</c:when>
<c:when test="${xxbean.area == 'BJ'}"> 北京xxx</c:when>
<c:otherwise></c:otherwise>
</c:choose>
---------c:forEach------------------
varStatus defines a loop status variable var with attributes: index--the current loop index number ; count--the total number of members
<c:forEach items="${xxList}" var="xxxxs" varStatus="s">
<tr>
<td>${s.index+1 }</td>
<td>${xxxs.name }</td>
</tr>
</c:forEach>
--------c:if------------------
<c:if test="${user.userStatus=='no'}">
not certified
</c:if>
4. Formatting
--------fmt:formatDate format date-------------------
引入:<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:formatDate value="${xxx.x_date}" pattern="yyyy年MM月dd日 "/>
--------fmt:formatNumber format amount---------------
引入:<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:formatNumber value="${xxx.xx_money }" type="currency" pattern="#.00"/></td>
----------------------------------
5.js call print
window.print();