<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    honzeland

    記錄點滴。。。

    常用鏈接

    統計

    Famous Websites

    Java

    Linux

    P2P

    最新評論

    J2EE學習筆記:

    Part One: The Web Tier

    Section One: Configuring Web Applications

    Mapping URLs to Web Components

    When a request is received by the web container it must determine which web component should handle the request. It does so by mapping the URL path contained in the request to a web application and a web component. A URL path contains the context root and an alias:

    http://host:port/context_root/alias

    A context root identifies a web application in a Java EE server. You specify the context root when you deploy a web module. A context root must start with a forward slash (/) and end with a string.
    ?
    The alias identifies the web component that should handle a request. The alias path must start with a forward slash (/) and end with a string or a wildcard expression with an extension (for example, *.jsp). Since web containers automatically map an alias that ends with *.jsp, you do not have to specify an alias for a JSP page unless you wish to refer to the page by a name other than its file name.

    Declaring Welcome Files

    For example, suppose you define a welcome file welcome.html. When a client requests a URL such as host:port/webapp/directory, where directory is not mapped to a servlet or JSP page, the file host:port/webapp/directory/welcome.html is returned to the client.

    If no welcome file is specified, the Application Server will use a file named index.XXX, where XXX can be html or jsp, as the default welcome file. If there is no welcome file and no file named index.XXX, the Application Server returns a directory listing.

    To specify a welcome file in the web application deployment descriptor, you need to nest a welcome-file element inside a welcome-file-list element. The welcome-file element defines the JSP page to be used as the welcome page. Make sure this JSP page is actually included in your WAR file.

    Setting Initialization Parameters

    The web components in a web module share an object that represents their application context. You can pass initialization parameters to the context or to a web component.

    To add a context parameter you need the following in the example's web.xml file:

    • A param-name element that specifies the context object
    • A param-value element that specifies the parameter to pass to the context object.
    • A context-param element that encloses the previous two elements.

    To add a web component initialization parameter you need the following in the example's web.xml file:

    • A param-name element that specifies the name of the initialization parameter
    • A param-value element that specifies the value of the initialization parameter
    • An init-param element that encloses the previous two elements

    Mapping Errors to Error Screens

    Declaring Resource References


    posted on 2006-10-13 15:53 honzeland 閱讀(346) 評論(0)  編輯  收藏 所屬分類: Java

    主站蜘蛛池模板: 日韩大片免费观看视频播放| 久久久久久AV无码免费网站下载| 亚洲国产综合久久天堂| 成人免费一区二区三区| 亚洲精品综合久久中文字幕| 日韩视频免费一区二区三区| 男女拍拍拍免费视频网站| 久久狠狠高潮亚洲精品| 日韩免费视频播播| 女人体1963午夜免费视频| 亚洲日韩一区二区一无码| 久久亚洲高清观看| 精品少妇人妻AV免费久久洗澡| a毛片在线看片免费| 亚洲kkk4444在线观看| 亚洲精品乱码久久久久久蜜桃不卡 | 噼里啪啦免费观看高清动漫4| 国产亚洲精品91| 亚洲综合男人的天堂色婷婷| 亚洲av高清在线观看一区二区| 免费专区丝袜脚调教视频| 国产免费人成视频尤勿视频| 亚洲中文字幕久久无码| 亚洲AV无码第一区二区三区| 国产无遮挡又黄又爽免费视频| 日本免费一区二区三区| 日本在线观看免费高清| 亚洲二区在线视频| 亚洲精品你懂的在线观看| 四虎影视免费永久在线观看| 亚洲啪啪免费视频| 中出五十路免费视频| 美女被免费视频网站a| 亚洲伦理中文字幕| 亚洲精品免费视频| 久久久无码精品亚洲日韩软件| 在线观看免费成人| 免费精品国产自产拍在 | a国产成人免费视频| 国产亚洲漂亮白嫩美女在线 | 亚洲视频在线观看网址|