标签:
引入jsp的头部的标签文件:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %>
引入head 的编码格式:
<meta http-equiv="content-type" content="text/html" charset="utf-8">
嵌入菜单文件的方式等等:
<%@include file="../meta.jsp"%>
<jsp:include page="../top.jsp"> <jsp:param name="menuShow" value="1" /> <jsp:param name="showIndex" value="3" /> </jsp:include>
<jsp:include page="left.jsp"></jsp:include>
读取 controller 绑定过来的值:
${result.past3RepayCount }
forEash 的应用:
<c:forEach items="${result.newRepaymentLoanList}" var="info">
<span >${info.loanQuota }</span>
<span ><a href="<%=basePath%>project/info/${info.loanId }">查看</a>
</c:forEach>
标签:
原文地址:http://www.cnblogs.com/liuhongfeng/p/4642584.html