JSP processor

When you configure your Web server instance to work with the WAS for iSeries product, the Web server configuration is set to pass HTTP requests for JSP files (files with the extension .jsp) to WAS. The JSP processor creates and compiles a servlet for each JSP file.

These following points apply to the JSP processor that is implemented in WAS:

Keeping generated Java source files

The JSP processor generates a Java source file for each JSP file. By default, this file is deleted immediately. It is recommended that you keep the generated .java file for debugging purposes only. It is safer and more efficient to configure the JSP processor to delete generated .java files in a production environment.

If you want to keep the generated .java files for a JSP page, follow these steps:

  1. Start the Application Assembly Tool.
  2. Open the Web module you want to modify.
  3. Expand Assembly Property Extensions under the Web module.
  4. Right-click JSP Attributes and select New.
  5. Set the value of Name to keepgenerated.
  6. Set the value of Value to true.
  7. Click File --> Save.
  8. (Optional) If you are working with a compressed Web module, install the modified module.
  9. If the application server is running, use the administrative console to stop the application server, then start it.