jsp页面判断当前请求的host

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

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

猜你喜欢

转载自www.cnblogs.com/jnhs/p/11981032.html