Changes between Version 26 and Version 27 of UTGBCore/RequestDispatcher


Ignore:
Timestamp:
01/14/08 16:32:52 (18 years ago)
Author:
leo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UTGBCore/RequestDispatcher

    v26 v27  
    88Add the following description into your web.xml:
    99{{{
    10   <servlet>
    11     <servlet-name>dispatcher</servlet-name>
    12     <servlet-class>org.utgenome.gwt.utgb.server.RequestDispatcher</servlet-class>
     10  <filter>
     11    <filter-name>RequestDispatcher</filter-name>
     12    <filter-class>org.utgenome.gwt.utgb.server.RequestDispatcher</filter-class>
     13    <!-- set the param-value element value to true when running your application in GWT's hosted-mode. -->
    1314    <init-param>
    14       <param-name>base-package</param-name>
    15       <param-value>(your web application request handler base package. e.g. org.utgenome.gwt.utgb.server.app)</param-value>
     15      <param-name>gwt-hosted-mode</param-name>
     16      <param-value>false</param-value>
    1617    </init-param>
    17   </servlet>
     18  </filter>
     19 
     20  <!-- This setting maps all HTTP requests to the RequestDispatcher filter servlet. -->
     21  <filter-mapping>
     22    <filter-name>RequestDispatcher</filter-name>
     23    <url-pattern>/*</url-pattern>
     24  </filter-mapping>
    1825
    19   <servlet-mapping>
    20     <servlet-name>dispatcher</servlet-name>
    21     <url-pattern>*.action</url-pattern>
    22   </servlet-mapping>
    2326}}}
    24   * The lines, param-name=base-package, param-value=(application base) specify the location (base package name) where the RequestDispatcher recursively searches for RequestHandler implementations (Java classes).
    25   * With the above setting, an HTTP request, e.g., http://localhost:8989/hello.action, is mapped to the request handler org.utgenome.gwt.utgb.server.app.Hello class.
    26 The upper letters are converted into the lower letters when mapping the request, e.g., Hello action can be accecced via hello.action URL.
    27     * Another example using hierarchies of actions:   http://localhost:8989/admin/login.action is mapped to org.utgenome.gwt.utgb.server.app.admin.Login class.
     27
     28config/track-config.xml
     29{{{
     30<config version="1.0">
     31  <import actionPackage="org.utgenome.gwt.utgb.server.app"/>
     32</config>
     33}}}
     34
     35
     36
     37~~  * The lines, param-name=base-package, param-value=(application base) specify the location (base package name) where the RequestDispatcher recursively searches for RequestHandler implementations (Java classes).
     38~~  * With the above setting, an HTTP request, e.g., http://localhost:8989/hello, is mapped to the request handler org.utgenome.gwt.utgb.server.app.Hello class.
     39
     40~~The upper letters are converted into the lower letters when mapping the request, e.g., Hello action can be accecced via hello.action URL.
     41~~    * Another example using hierarchies of actions:   http://localhost:8989/admin/login.action is mapped to org.utgenome.gwt.utgb.server.app.admin.Login class.
    2842
    2943