jsp page request determines the current host

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

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

 

Guess you like

Origin www.cnblogs.com/jnhs/p/11981032.html