Version 1 (modified by 18 years ago) (diff) | ,
---|
UTGB Request Dispatcher Mechanism
web.xml setting
Add the following description into you web.xml.
- The lines param-name=base-package, param-value=(application base) specifies the location (base package name) where the RequestDispatcher searches recursively for RequestHandler? implementations.
- With the following 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. The upper letters are converted into the lower letters when mapping the request, e.g., Hello action can be accecced via hello.action URL.
- Another example using hierarchies of actions: http://localhost:8989/admin/login.action is mapped to org.utgenome.gwt.utgb.server.Login class.
<servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>org.utgenome.gwt.utgb.server.RequestDispatcher</servlet-class> <init-param> <param-name>base-package</param-name> <param-value>(your web application request handler base package. e.g. org.utgenome.gwt.utgb.server.app)</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>dispatcher</servlet-name> <url-pattern>*.action</url-pattern> </servlet-mapping>