1。java
<jsp:include page="/WEB-INF/jsp/shop/userBar.jsp"></jsp:include>
解析爲session
<div th:replace="shop/userBar:: page-user-bar"></div>
<input type="button" id="close" class="button" value="關閉" />
解析爲 jsp
<input type="button" id="close" class="button" th:value="關閉" />
2。post
<form:form modelAttribute="alipayForm" action="replayAlipaySubmit"method="post"> <form:hidden path="outTradeNo" value="${alipayForm.outTradeNo}"/>
解析爲ui
<form action="replayAlipaySubmit" th:object="${alipayForm}" method="post"> <input type="hidden" name="outTradeNo" value="" th:value="${alipayForm.outTradeNo}"/>
3。url
<h3>客戶訂單號:${alipayForm.outTradeNo}</h3> <p>訂單名稱:${alipayForm.subject}</p>
解析爲spa
<p>客戶訂單號:<h3 th:text="${alipayForm.outTradeNo}"></h3></p> <p>訂單名稱:<span th:="${alipayForm.subject}"></span></p>
4.code
<c:if test="${sessionScope.UVO.guestName==null}"> <meta http-equiv="REFRESH" content="0;url=initGuestLogin"> </c:if>
解析爲orm
<div th:if="${#strings.isEmpty(session.UVO.guestName)}"> <meta http-equiv="REFRESH" content="0;url=initGuestLogin"/> </div>