1.c:if相当于c:when
<c:if test="${sessionScope.UVO.guestName==null}">
<meta http-equiv="REFRESH" content="0;url=initGuestLogin">
</c:if>
<span th:if="${#strings.isEmpty(session.UVO.guestName)}">
<meta http-equiv="REFRESH" content="0;url=initGuestLogin"/>
</span>
2.
<div class="box_header_user_menu">
<ul class="user_menu">
<jsp:include page="/WEB-INF/jsp/shop/userBar.jsp"></jsp:include>
</ul>
</div>
<div class="box_header_user_menu">
<div th:replace="shop/userBar :: page-user-bar"></div>
</div>
3.value与th:value同时出现,具体间下面
<form:form modelAttribute="alipayForm" action="alipaySubmit" method="post">
<form:hidden path="outTradeNo" value="${alipayForm.outTradeNo}"/>
<form:hidden path="subject" value="${alipayForm.subject}"/>
<form:hidden path="body" value="${alipayForm.body}"/>
<form:hidden path="price" value="${alipayForm.price}"/>
<form:hidden path="showUrl" value="${alipayForm.showUrl}"/>
<form:hidden path="receiveName" value="${alipayForm.receiveName}"/>
<form:hidden path="receiveAddress" value="${alipayForm.receiveAddress}"/>
<form:hidden path="receiveZip" value="${alipayForm.receiveZip}"/>
<form:hidden path="receivePhone" value="${alipayForm.receivePhone}"/>
<form:hidden path="receiveMobile" value="${alipayForm.receiveMobile}"/>
<div class="about_wrapper">
<h1>
该支付信息取自您登录的个人信息,请确认,如果有问题请您修改您的个人信息。
</h1>
</div>
<div class="about-top">
<div class="grid span_2_of_3">
<h3>客户订单号:${alipayForm.outTradeNo}</h3>
<p>订单名称:${alipayForm.subject}</p>
<p>订单描述:${alipayForm.body}</p>
<p>付款金额:${alipayForm.price}</p>
<p>商品展示地址:${alipayForm.showUrl}</p>
<p>收货人姓名:${alipayForm.receiveName}</p>
<p>收货人地址:${alipayForm.receiveAddress}</p>
<p>收货人邮编:${alipayForm.receiveZip}</p>
<p>收货人电话号码:${alipayForm.receivePhone}</p>
<p>收货人手机号码:${alipayForm.receiveMobile}</p>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<input type="button" id="submitAlipay" class="button" value="登录支付宝结账" />
</form:form>
<form th:object="${alipayForm}" action="alipaySubmit" method="post">
<input type="hidden" name="outTradeNo" value="" th:value="${alipayForm.outTradeNo}"/>
<input type="hidden" name="subject" value="" th:value="${alipayForm.subject}"/>
<input type="hidden" name="body" value="" th:value="${alipayForm.body}"/>
<input type="hidden" name="price" value="" th:value="${alipayForm.price}"/>
<input type="hidden" name="showUrl" value="" th:value="${alipayForm.showUrl}"/>
<input type="hidden" name="receiveName" value="" th:value="${alipayForm.receiveName}"/>
<input type="hidden" name="receiveAddress" value="" th:value="${alipayForm.receiveAddress}"/>
<input type="hidden" name="receiveZip" value="" th:value="${alipayForm.receiveZip}"/>
<input type="hidden" name="receivePhone" value="" th:value="${alipayForm.receivePhone}"/>
<input type="hidden" name="receiveMobile" value="" th:value="${alipayForm.receiveMobile}"/>
<div class="about_wrapper">
<h1>
该支付信息取自您登录的个人信息,请确认,如果有问题请您修改您的个人信息。
</h1>
</div>
<div class="about-top">
<div class="grid span_2_of_3">
<h3 th:text="${alipayForm.outTradeNo}"></h3>
<p>订单名称:<span th:text="${alipayForm.subject}"></span></p>
<p>订单描述:<span th:text="${alipayForm.body}"></span></p>
<p>付款金额:<span th:text="${alipayForm.price}"></span></p>
<p>商品展示地址:<span th:text="${alipayForm.showUrl}"></span></p>
<p>收货人姓名:<span th:text="${alipayForm.receiveName}"></span></p>
<p>收货人地址:<span th:text="${alipayForm.receiveAddress}"></span></p>
<p>收货人邮编:<span th:text="${alipayForm.receiveZip}"></span></p>
<p>收货人电话号码:<span th:text="${alipayForm.receivePhone}"></span></p>
<p>收货人手机号码:<span th:text="${alipayForm.receiveMobile}"></span></p>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<input type="button" id="submitAlipay" class="button" value="登录支付宝结账" />
</form>
4.
<h1>
商品详细信息<br/>
${message}<form:errors path="*"></form:errors>
</h1>
<h1>
商品详细信息<br/>
<span th:if="${#fields.hasErrors('${goodsForm.*}')}"><span th:errors="${goodsForm.*}"></span></span>
<span th:text="${message}"></span>
</h1>
5.
<div class="grid images_3_of_1">
<img alt="商品详细情况" src="showImage?pictureId=${goodsForm.pictureId}" style="height:185px;width:330px;">
</div>
<div class="grid images_3_of_1">
<img alt="商品详细情况" th:src="@{showImage(pictureId=${goodsForm.pictureId})}" style="height:185px;width:330px;" />
</div>
6.
<c:forEach items="${list}" var="user" varStatus="s">
<div th:each="user,s:${list}"></div>
7.
<a href="initGoodsDetail?commodityId=${goodsInfo.commodityId}"><img alt="商品详细情况" src="showImage?pictureId=${goodsInfo.pictureId}" style="height:185px;width:330px;"></a>
<a th:href="@{initGoodsDetail(commodityId=${goodsInfo.commodityId})}"><img alt="商品详细情况" th:src="@{showImage(pictureId=${goodsInfo.pictureId})}" style="height:185px;width:330px;" /></a>
8.
<h1>
您现在是匿名购买该商品,请认真填写以下每项内容以保证商品能够顺利到达您的手中。
<br/>
${message}<form:errors path="*"></form:errors>
</h1>
<h1>
您现在是匿名购买该商品,请认真填写以下每项内容以保证商品能够顺利到达您的手中。
<br>
<span th:errors="${alipayForm.*}"></span>
<span th:text="${message}"></span>
</h1>
<h1>
您已成功支付,请等待商家送货。
</h1>
<h1>
<span th:text="您已成功支付,请等待商家送货。"></span>
</h1>
9.
<span>${alipayForm.body}</span>
<span th:text="${alipayForm.body}"></span>
10.
src="showImage?pictureId=${cartsInfo.pictureId}"
th:src="@{showImage(pictureId=${cartsInfo.pictureId})}"
href="replayAlipay?outTradeNo=${buyedInfo.outTradeNo}"
th:href="@{replayAlipay(outTradeNo=${buyedInfo.outTradeNo})}"
11.
<p>规格:每${cartsInfo.unit}${goodsForm.specifications}</p>
<p>规格:每<span th:text="${cartsInfo.unit}"></span>
<span th:text="${goodsForm.specifications}"></span>
</p>
12.
<p>零售价:${cartsInfo.retailPrice}元</p>
<p>零售价:<span th:text="${cartsInfo.retailPrice}"></span>元</p>
13.
src="showImage?pictureId=${cartsInfo.pictureId}"
th:src="@{showImage(pictureId=${cartsInfo.pictureId})}"
14.
href="delCart?cartId=${cartsInfo.cartId}&count=${cartsInfo.count}&commodityId=${cartsInfo.commodityId}"
th:href="@{delCart(cartId=${cartsInfo.cartId},count=${cartsInfo.count},commodityId=${cartsInfo.commodityId})}"
15.
<c:if test="${cartList.size() != null && cartList.size() != 0 }">
<button class="button"><span>结帐</span></button>
</c:if>
<th:if test="${cartList.size() != 0}">
<button class="button"><span>结帐</span></button>
</th:if>
16.
<p>
All rights Reserved | Design by <a
href="http://www.yum80817.cn">天津艾申德斯科技有限公司</a>
津ICP备15003938号
</p>当前页面为copyRight
<p th:fragment="page-copy-right">
All rights Reserved | Design by <a
href="http://www.yum80817.cn">天津艾申德斯科技有限公司</a>
津ICP备15003938号
</p>
17.
<c:forEach items="${list}" var="goodsInfo" varStatus="status">
<c:choose>
<c:when test="${status.count%3==1}">
<div class="grid_1_of_3 grid_1_of_3first images_1_of_3">
</c:when>
<c:otherwise>
<div class="grid_1_of_3 images_1_of_3">
</c:otherwise>
</c:choose>
</c:forEach>
<div class="grid_1_of_3 grid_1_of_3first images_1_of_3"
th:class="${status.count%3==1}?'grid_1_of_3 grid_1_of_3first images_1_of_3':'grid_1_of_3 images_1_of_3'" th:each="goodsInfo,status:${list}">
18.
<span class="reducedfrom">每${goodsInfo.unit}${goodsInfo.specifications}</span>
<span class="reducedfrom">每<span th:text="${#strings.concat(goodsInfo.unit).concat(goodsInfo.specifications)}"></span></span>
19.
<h1>${message}</h1>
<h1>
<span th:if="${#fields.hasErrors('${guestForm.*}')}"><span th:errors="${guestForm.*}"></span></span>
<span th:text="${message}"></span>
</h1>
20.
<c:choose>
<c:when test="${cartList.size() == null ||cartList.size() == 0}">
您尚未登录,或您尚未购买任何商品。
</c:when>
<c:otherwise>
您的购物车有 <a href="initCart"><strong> ${cartList.size()}件商品</strong></a>
</c:otherwise>
</c:choose>
<span th:if="${cartList.size() == 0}">
您尚未登录,或您尚未购买任何商品。
</span>
<span th:if="${cartList.size() != 0}">
您的购物车有 <a th:href="initCart"><strong> <span th:text="${cartList.size()}">1</span>件商品</strong></a>
</span>
21.
<ul>
<li <c:if test="${goodsForm.type == '粮食'}">class="active"</c:if>><a href="initGoods?type=liangshi">粮食</a></li>
</ul>
<div class="top-nav" th:fragment="page-top-bar">top-bar档前页面的名字
<ul>
<li th:class="${goodsForm.type == '粮食'}?'active':''"><a href="initGoods?type=liangshi">粮食</a></li>
</ul>
<div class="clear"></div>
</div>
22.
<c:choose>
<c:when test="${sessionScope.UVO.guestName==null}">
<li class="act first"><a href="initGuestRegister"><div
class="button-t">
<span>注册新用户</span>
</div></a></li>
<li class="last"><a href="initGuestLogin"><div
class="button-t">
<span>登录</span>
</div></a></li>
</c:when>
<c:otherwise>
<li class="act first"><a href="initEditGuest"><div
class="button-t">
<span>${sessionScope.UVO.guestName}</span>
</div></a></li>
<li class="last"><a href="${pageContext.request.contextPath}/"><div class="button-t">
<span>退出</span>
</div></a></li>
</c:otherwise>
</c:choose>
<ul class="user_menu" th:fragment="page-user-bar">
<li class="act first" th:if="${#strings.isEmpty(session.UVO.guestName)}">
<a th:href="@{initGuestRegister}"><div><span class="button-t" >注册新用户</span></div></a>
</li>
<li class="last"> </li>
<li class="last" th:if="${#strings.isEmpty(session.UVO.guestName)}">
<a th:href="@{initGuestLogin}"><div><span class="button-t">登录</span></div></a>
</li>
<li class="act first" th:if="${not #strings.isEmpty(session.UVO.guestName)}">
<a th:href="@{initEditGuest}"><span class="button-t" th:text="${session.UVO.guestName}">张三</span></a>
</li>
<li class="last" th:if="${not #strings.isEmpty(session.UVO.guestName)}">
<a th:href="@{/}"><span class="button-t">退出</span></a>
</li>
<li>
<form action="selectGoods" th:object="${goodsForm}" method="post">
<input type="text" name="commodityName"/>
<input type="submit" value="检索"/>
</form></li>
</ul>