CSDN博客

img wishyouwerehere

部署时的参数文件(web.xml)

发表于2004/10/22 14:13:00  733人阅读

<?xml version="1.0" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<!-- Copyright (c) 2002 by ObjectLearn. All Rights Reserved. -->
<web-app>

 <!-- Remove the comments below to define a servlet.          -->
 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
 <!--     <servlet>                                           -->
 <!--       <servlet-name>MyServlet</servlet-name>            -->
 <!--       <servlet-class>examples.MyServlet</servlet-class> -->
 <!--       <init-param>                                      -->
 <!--         <param-name>myparam</param-name>                -->
 <!--         <param-value>12345</param-value>                -->
 <!--       </init-param>                                     -->
 <!--     </servlet>                                          -->
 <!--                                                         -->
 <!--                                                         -->
 <!--     <servlet-mapping>                                   -->
 <!--           <servlet-name>MyServlet</servlet-name>        -->
 <!--           <url-pattern>/mine/*</url-pattern>            -->
 <!--     </servlet-mapping>                                  -->
 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
    <servlet>
        <servlet-name>SimpleBankServlet</servlet-name>
        <display-name>SimpleBankServlet</display-name>
        <servlet-class>samples.ejb.bmp.robean.servlet.SimpleBankServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>SimpleBankServlet</servlet-name>
        <url-pattern>/MyBank</url-pattern>
    </servlet-mapping>
 <welcome-file-list>
  <welcome-file>index.jsp</welcome-file>
 </welcome-file-list>

 <error-page>
  <error-code>404</error-code>
  <location>/error.jsp</location>
 </error-page>

</web-app>

阅读全文
0 0

相关文章推荐

img
取 消
img