Resource manager servlet.
The resource manager servlet is in charge of loading resources
(.gif, .jpg, .js, and so on) from the client.
The resource description is given as a set of request parameters
which will be interpreted by the service method of this
servlet.
A resource manager servlet can be registered in your web application
in order to optimize the resource loading. Actually, if no resource
manager is registered in your Web application, the framework will
automatically generate a URL calling the controller servlet with a set
of parameters which will be forwarded to the resource manager servlet.
To avoid this forward and reduce the size of the generated URLs, you
can register your own resource manager in the deployment descriptor
(WEB-INF/web.xml) of your application.
For example, you may define a resource manager servlet and put it
in the /classes of your web application.
package mypackage;
public class MyResourceManager extends IlxWResourceManager {
// do nothing, simply redefine the servlet so that it is loaded
// by the class loader of the Web Application.
// Actually with some web servers, a servlet must always be a part of
// the classes of the web application.
}
And then, you will add the following lines to your web.xml
file: