每一个网站都应该必须有一个自己的欢迎页
s.qbao.com -----------欢迎页往搜索入口跳--------> qbao.com
<web-app> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
index.jsp
<%@ page contentType="text/html;charset=UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <c:set value="${pageContext.request.contextPath}" var="ctx" /> <html> <script type="text/javascript"> window.location.href="http://www.qbao.com" </script> </html>