eclipse web.xml for weblogic 11g

来源:互联网 发布:免费下载暮色森林js 编辑:程序博客网 时间:2024/06/05 16:14

在eclipse中export  WAR到weblogic 前,得修改下web.xml内容,注意红字前得 ‘/’ 符号,

否则如果只输入http://localhost:7001/MyWebJSP/ , weblogic找不到这些html 和jsp文件。

 

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>MyWebJSP</display-name>
  <welcome-file-list>
    <welcome-file>/default.html</welcome-file>
    <welcome-file>/default.htm</welcome-file>
    <welcome-file>/default.jsp</welcome-file>
     <welcome-file>/GetServerProperty.jsp</welcome-file>
  </welcome-file-list>
</web-app>
0 0
原创粉丝点击