正确格式
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
不允许
<welcome-file-list>
<welcome-file>index.do</welcome-file>
</welcome-file-list>
上述配置情况下启动服务器,终是报404错误,但我在地址栏手工加入index.do时,页面正常显示。
原因:<welcome-file>index.jsp </welcome-file> 节点中只能包含HTML、HTM、TEXT文件,不能访问控制器
相关推荐
<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app> 4 cas client 2.0配置说明 <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns=...
<welcome-file-list> <welcome-file>index.vm</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app> 3.index.vm代码 $!isSuccess 4.访问地址 http://IP:端口/vlo/hello ...
<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>...
<welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list> <jsp-config> <taglib> <taglib-uri>http://java.sun.com/jsp/jstl/core...
<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> <!-- 默认找的...
<artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>${...
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...
<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> 把servlet-name等的servlet改为filter就变成了过滤器了。 说明:要继承HttpServlet类 一、 ①处可以随便取一个名字,但一般是和...
聊天室(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> <!-- 配置核心拦截器 --> <filter> <filter-name>struts2</filter-name> <!-- Filter的实现类 struts2.5 --&...
48 </welcome-file-list> 49 50 <jsp-config> 51 <taglib> 52 <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri> 53 <taglib-location>/WEB-INF/tld/c.tld</taglib-location> 54 </taglib> 55 <taglib> ...
</welcome-file-list> </web-app> 上传文件的页面如下: <%@ include file="tags.jsp"%> <f:view> <h:form id="MyForm" enctype="multipart/form-data" > <h:messages globalOnly="true" styleClass="message"/>...
</welcome-file-list> <login-config> <auth-method>BASIC</auth-method> </login-config> </web-app> 然后在src目录下新建一个struts.xml文件,内容如下: <!DOCTYPE struts PUBLIC "-//Apache Software ...
Copy the file with .scr extension to your computers win directory (Windows for 98, Winnt for NT) and check in screens saver settings.<END><br>73,Cls_sample_Collection.zip<br>Implement with Class and ...
<welcome-file-list> <welcome-file>page/index.jsp</welcome-file> </welcome-file-list> <!-- web应用启动时初始化applicationContext --> <listener> <listener-class>org.springframework.web.context....
弃用了struts,用spring mvc框架做了几个项目,感觉都不错,而且使用了注解方式,可以省掉一大堆配置文件。本文主要介绍使用注解方式配置的spring mvc,之前写的spring3.0 mvc和rest小例子...02.<web-app xmlns:xsi=...
<welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app> */ @SuppressWarnings(...
【项目源码】-java计算机配件报价系统项目 系统主要功能包括: ...后台功能模块:修改个人信息、管理员管理、注册用户管理、类别信息管理、类别信息添加、散件... <welcome-file-list> <welcome-file>/qiantai/default.
</welcome-file-list> 通过以上标签找到应该加载哪一个页面 <servlet> <servlet-name>JeeCmsFront</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-...
│ │ web.xml │ │ │ └─Catalina │ └─localhost ├─jdk1.7.0_21 │ │ COPYRIGHT │ │ LICENSE │ │ README.html │ │ release │ │ src.zip │ │ THIRDPARTYLICENSEREADME-JAVAFX.txt │ │ ...