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

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

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

    honzeland

    記錄點滴。。。

    常用鏈接

    統(tǒng)計

    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

    主站蜘蛛池模板: 97在线观免费视频观看| 四虎影视永久免费观看| jiz zz在亚洲| 亚洲精品线路一在线观看| 日韩精品在线免费观看| va天堂va亚洲va影视中文字幕| 国产免费无遮挡精品视频| 日韩精品无码免费专区网站| 亚洲激情视频图片| 亚洲视频在线免费| 97热久久免费频精品99| 国产成人自产拍免费视频| 亚洲精品美女在线观看播放| 无码不卡亚洲成?人片| 波多野结衣在线免费观看| 免费无码AV一区二区| 亚洲乱码卡一卡二卡三| 老司机亚洲精品影视www| 99久久免费精品国产72精品九九| 黄色视屏在线免费播放| 亚洲精品乱码久久久久蜜桃| 日韩va亚洲va欧洲va国产| 免费鲁丝片一级在线观看| 日韩精品无码一区二区三区免费| 美女被暴羞羞免费视频| 亚洲av无码国产综合专区| 亚洲色WWW成人永久网址| 在线观看国产情趣免费视频| 亚欧免费一级毛片| caoporn成人免费公开| 亚洲性线免费观看视频成熟| 久久久久亚洲AV成人无码| 亚洲综合另类小说色区色噜噜| 在线播放高清国语自产拍免费| 三年片在线观看免费观看大全动漫 | 四虎在线视频免费观看视频| 免费夜色污私人影院网站| 国产人成亚洲第一网站在线播放| 久久亚洲私人国产精品| 亚洲av之男人的天堂网站| 亚洲综合色在线观看亚洲|