我用structs2时候web.xml配置如下
<welcome-file-list>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
启动服务器,终是报404错误,但我在地址栏手工加入index.htm时,页面正常显示.
解决:
tomcat 会去检查有没有index.htm这个文件.
先读取 welcome list,然后取得第一个index,然后到web中的路径中查找有没有这个文件,没有继续第二个.依次下去。在WebRoot下建立一个index.htm空文件就可以正常访问.
分享到:
相关推荐
13. welcome-file-list元素 14. error-page元素 15. taglib元素 16. resource-env-ref元素 17. resource-ref元素 18. security-constraint元素 19. login-config元素 20. security-role元素 21. env...
2.web.xml配置文件 <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=...
<welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list> <jsp-config> <taglib-uri>...
<welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>...
import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet....
聊天室(ActionScript 3.0实现)<?xml version="1.0" encoding="UTF-8"?> -<web-app xsi:schemaLocation=...<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> <!-- 默认找的文件名 --> ...
<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> 把servlet-name等的servlet改为filter就变成了过滤器了。 说明:要继承HttpServlet类 一、 ①处可以随便取一个名字,但一般是和...
</welcome-file-list> </web-app> 4 cas client 2.0配置说明 <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi=...
在web.xml的display-name标签与welcome-file-list标签中加入一下代码 struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* org.springframework.web.context....
<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <!-- 配置核心拦截器 --> <filter-name>struts2</filter-name> <!-- Filter的实现类 struts2.5 --> ...
Welcome to mkscript setup progress All available chips: 0. sun8iw5p1 Choice: 0 All available platforms: 0. android 1. dragonboard 2. linux 3. tina Choice: 2 All available kernel: 0. linux-3.4 ...
on the file list of your BIG file. A window will come up telling you that FinalBIG needs to activate EditMode. Accept that, but you really should back up any original BIG files before saving. That磗 ...
45 <welcome-file-list> 46 <welcome-file>index.jsp</welcome-file> 47 <welcome-file>index.html</welcome-file> 48 </welcome-file-list> 49 50 <jsp-config> 51 52 <taglib-uri>...
【项目源码】-java计算机配件报价系统项目 系统主要功能包括: ...后台功能模块:修改个人信息、管理员管理、注册用户管理、类别信息管理、类别信息添加、散件... <welcome-file-list> <welcome-file>/qiantai/default.
23. </welcome-file-list> 24.</web-app> spring-servlet,主要配置controller的信息 [java] view plaincopy 01.<?xml version="1.0" encoding="UTF-8"?> 02. 03. xmlns:xsi=...
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> <context-param> <description>spring初始配置 <param-name>contextConfigLocation</param-name> <param-...
|--com.taotao.manage.web |--com.taotao.manage.service |--com.taotao.manage.mapper |--com.taotao.manage.pojo 3.4. 创建taotao-parent 3.4.1. 创建maven工程 3.4.2. 修改pom文件 xsi:...
<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <login-config> <auth-method>BASIC</auth-method> </login-config> </web-app> 然后在src目录下新建一个struts.xml文件...
以cms_content_list为例,首先,每一个标签的声明都是在jeecms-context.xml中进行的, <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...