InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.1: Developing servlets >
4.2.1.2: Servlet support and environment in WebSphere >
4.2.1.2.3a: Invoking servlets by classname and serving files

4.2.1.2.3a: Invoking servlets by classname and serving files

IBM Application Server provides some optional functions for your Web applications.

The tables below describe the function and how to use the WebSphere Application Server tools to enable the function in your Web application.

Invoke servlets by class name

Objective Invoke servlets by class or code names (such as MyServletClass)
How to enable the function Use one of the following facilities:
  • If using the Application Assembly Tool (AAT), click serve servlets by classname in the IBM Extensions panel.
  • In the ibm-web-ext.xmi file, change the serveServletsByClassnameEnabled flag from false to true.

    The ibm-web-ext.xmi file is in the WEB-INF directory of the Web module.

Serve files without specifically configuring them

Objective Serve HTML, servlets, or other files in the Web application document root without extra configuration steps.

For HTML files, you will not need to add a pass rule to the Web server. For servlets, you will not need to explicitly configure the servlets in the WebSphere administrative domain.

How to enable the function Use one of the following facilities:
  • If using the Application Assembly Tool (AAT), click File Serving Enabled in the IBM Extensions panel.
  • In the ibm-web-ext.xmi file, change the fileServingEnabled flag from false to true.

Go to previous article: IBM extensions to the Servlet API Go to next article: Security risk example of invoking servlets by class name

 

 
Go to previous article: IBM extensions to the Servlet API Go to next article: Security risk example of invoking servlets by class name