jsp页面判断当前请求的host

需要引入<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

 <center>
        <c:if test="${fn:contains(host,'baidu')}">
           
        </c:if>
       
    </center>

 

posted @ 2019-12-04 09:57  不打鱼光晒网  阅读(581)  评论(0)    收藏  举报