jsp页面判断当前请求的host

时间:2019-12-04 12:19:23   收藏:0   阅读:135

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

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

 

原文:https://www.cnblogs.com/jnhs/p/11981032.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!