<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

    主站蜘蛛池模板: 久久亚洲精品国产精品黑人| 免费国产真实迷j在线观看| 国产亚洲美日韩AV中文字幕无码成人| 亚洲综合欧美色五月俺也去| 无码乱肉视频免费大全合集| 亚洲丰满熟女一区二区v| 在线看免费观看AV深夜影院| 亚洲人成影院77777| 99re热免费精品视频观看| 亚洲三级在线观看| 午夜寂寞在线一级观看免费| 国产亚洲精品仙踪林在线播放| 亚洲电影日韩精品| 日韩精品无码免费专区午夜| 亚洲va无码专区国产乱码| 一区二区三区四区免费视频| 亚洲日本在线观看网址| 狼友av永久网站免费观看| 深夜福利在线免费观看| 亚洲精品成人片在线观看精品字幕| 国产午夜无码精品免费看动漫| 亚洲bt加勒比一区二区| 久久久高清免费视频| 亚洲AV色欲色欲WWW| 亚洲国产精品狼友中文久久久| 成全视频高清免费观看电视剧| 在线免费观看亚洲| 免费无码黄网站在线观看| 男女作爱免费网站| 精品亚洲国产成AV人片传媒| 成人影片麻豆国产影片免费观看| 国产精品亚洲精品爽爽| 亚洲国产精品乱码一区二区| 丁香花免费完整高清观看| 国产精品亚洲专区在线播放| 亚洲AV无一区二区三区久久| 最近最新的免费中文字幕| 久久精品免费大片国产大片| 亚洲国产精品日韩在线| 亚洲A∨精品一区二区三区| 99在线热视频只有精品免费|