Skip to content

Instantly share code, notes, and snippets.

@MaySnow
Created October 3, 2012 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaySnow/3825997 to your computer and use it in GitHub Desktop.
Save MaySnow/3825997 to your computer and use it in GitHub Desktop.
公用的jsp页面
<jsp:include page="include/top.jsp">
<jsp:param value="new" name="tag"/>
</jsp:include>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="base.jsp" %>
<div style="margin-top:30px">
<ul class="nav nav-list">
<li class="${param.tag == 'new' ? 'active' : '' }">
<a href="#" >
<img src="<%=basePath%>img/home${param.tag == 'new' ? '-active.png' : '.png' }" alt="" >
最新动态
</a>
</li >
<li class="${param.tag == 'contact' ? 'active' : '' }">
<a href="<%=basePath%>contact/contact.action">
<img src="img/contacts${param.tag == 'contact' ? '-active.png' : '.png' }" alt="">
客户
</a>
</li>
<li class="${param.tag == 'task' ? 'active' : '' }">
<a href="#">
<img src="<%=basePath%>img/task${param.tag == 'task' ? '-active.png' : '.png' }" alt="">
任务
</a>
</li>
<li class="${param.tag == 'deal' ? 'active' : '' }">
<a href="#">
<img src="<%=basePath%>img/deals${param.tag == 'deal' ? '-active.png' : '.png' }" alt="">
交易
</a>
</li>
<li class="${param.tag == 'anniversary' ? 'active' : '' }">
<a href="#">
<img src="<%=basePath%>img/gift${param.tag == 'anniversary' ? '-active.png' : '.png' }" alt="">
纪念日
</a>
</li>
</ul>
</div>
<hr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment