web.xml

jinjysjkl 2011-03-02 03:28:54
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<welcome-file-list>
<welcome-file>userfile/index.jsp</welcome-file>
</welcome-file-list>
<filter>
<filter-name>FilterEnterServlet</filter-name>
<filter-class>cn.forum.servlet.FilterEnterServlet</filter-class>
<init-param>
<param-name>loginPage</param-name>
<param-value>/userfile/enter.jsp</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>FilterEnterServlet</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>

<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>UserByNameServlet</servlet-name>
<servlet-class>cn.forum.ajax.servlet.UserByNameServlet</servlet-class>
</servlet>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>UserEnterServlet</servlet-name>
<servlet-class>cn.forum.servlet.UserEnterServlet</servlet-class>
</servlet>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>UserPassServlet</servlet-name>
<servlet-class>cn.forum.servlet.UserPassServlet</servlet-class>
</servlet>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>UpdateUserInfo</servlet-name>
<servlet-class>cn.forum.servlet.UpdateUserInfo</servlet-class>
</servlet>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>UserLoginServlet</servlet-name>
<servlet-class>cn.forum.servlet.UserLoginServlet</servlet-class>
</servlet>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>ValidateNum</servlet-name>
<servlet-class>cn.forum.servlet.ValidateNum</servlet-class>
</servlet>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>UserSafetyServlet</servlet-name>
<servlet-class>cn.forum.servlet.UserSafetyServlet</servlet-class>
</servlet>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>FilterEnterServlet</servlet-name>
<servlet-class>cn.forum.servlet.FilterEnterServlet</servlet-class>
</servlet>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>UserLogon</servlet-name>
<servlet-class>cn.forum.servlet.UserLogon</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UserByNameServlet</servlet-name>
<url-pattern>/userfile/UserByNameServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UserEnterServlet</servlet-name>
<url-pattern>/userfile/UserEnterServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UserPassServlet</servlet-name>
<url-pattern>/userfile/UserPassServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UpdateUserInfo</servlet-name>
<url-pattern>/userfile/UpdateUserInfo</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UserLoginServlet</servlet-name>
<url-pattern>/userfile/UserLoginServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ValidateNum</servlet-name>
<url-pattern>/userfile/ValidateNum</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UserSafetyServlet</servlet-name>
<url-pattern>/userfile/UserSafetyServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UserLogon</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>


</web-app>
我的项目名叫forum
我怎么打完http://localhost:8080/forum
以后不自动跳转到userfile/index.jsp页面呢啊?
...全文
39 点赞 收藏 5
写回复
5 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
tiantiankk 2011-03-02
[Quote=引用 4 楼 lp19890601 的回复:]

引用 2 楼 luman2002 的回复:
XML code

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


正解
[/Quote]
正解
回复
lp19890601 2011-03-02
[Quote=引用 2 楼 luman2002 的回复:]
XML code

<welcome-file-list>
<welcome-file>/userfile/index.jsp</welcome-file>
</welcome-file-list>
[/Quote]

正解
回复
Joop_Song 2011-03-02
<welcome-file>userfile/index.jsp</welcome-file>

试试这样:http://localhost:8080/forum/userfile

路径。。。


对的话给分。。。
回复
luman2002 2011-03-02

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

回复
xieshengjun2009 2011-03-02
我不想一点一点的看你的代码,仔细检查,你懂的。
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2011-03-02 03:28
社区公告
暂无公告