码迷,mamicode.com
首页 > Web开发 > 详细

freemark与jstl对比

时间:2014-07-13 23:33:18      阅读:291      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   java   color   os   

jstl的Index.jsp:

bubuko.com,布布扣
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html ng-app>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<c:forEach var="l" items="${list}">
    <c:if test="${l.getStr(‘name‘)==‘pinglun‘}">
        <a href="/InfoAudit/comtModule/commentList" class="btn btn-primary btn-lg">用户评论</a>
    </c:if>
    <c:if test="${l.getStr(‘name‘)==‘tousu‘}">
        <a href="/InfoAudit/comtModule/complainList" class="btn btn-primary btn-lg">用户投诉</a>
    </c:if>
</c:forEach>

<c:forEach var="l" items="${list}">
    <c:if test="${l.getStr(‘name‘)==‘pingluntousu-selall‘}">
        <span class="btn btn-default" id="s_btn" ng-click="search(2)">全部区域</span>
    </c:if>
</c:forEach>

</body>
</html>
View Code

freemark的index.html:

bubuko.com,布布扣
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html ng-app>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
 
    <#if  name == ‘pinglun‘}">
        <a href="/InfoAudit/comtModule/commentList" class="btn btn-primary btn-lg">用户评论</a>
    </#if>
    <#if name == ‘tousu‘}">
        <a href="/InfoAudit/comtModule/complainList" class="btn btn-primary btn-lg">用户投诉</a>
    </#if>
 

 
    <#if  name  == ‘pingluntousu-selall‘}">
        <span class="btn btn-default" id="s_btn" ng-click="search(2)">全部区域</span>
    </#if>
 

</body>
</html>
View Code

 

freemark与jstl对比,布布扣,bubuko.com

freemark与jstl对比

标签:style   blog   http   java   color   os   

原文地址:http://www.cnblogs.com/super-d2/p/3840378.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!