简化页面访问路径

来源:互联网 发布:深圳行知美术学校 编辑:程序博客网 时间:2024/05/01 16:39

把http://100.0.7.143/EncoderConfig/F1EncoderConfig.exe简化成IP地址如http://100.0.7.143:

 

在web.xml中:

   <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

 

 

在webroot的根目录下有index.jsp,其内容为:

<!--html><body><h1>It works!</h1></body></html-->

<html>
<script type="text/javascript">
window.location.href = "<%=request.getContextPath()%>/LoginController.do?method=toLoginView";
</script>
</html>