IBM Support

How to configure JSP pre-compile settings

Question & Answer


Question

How do you set the JSP pre-compile option in IBM Rational Application Developer for WebSphere Software (RAD) 7.5 (and later)?

Cause

You may be familiar with the pre-compilation feature found in RAD 7.0 (out of service) using Window > Preferences > Web Tools > JSP Compilation. This RAD 7.0 workspace feature compiled the JSP files when a project is built in the workspace.

This option isn't available in RAD v8.x/9.x (and has not been available since RAD 7.5).

Note: If a workspace preferences feature, such as what was available in RAD 7.0 is considered useful, submit a feature request (RFE) requesting what was documented under the RAD 7.0 IC (Compiling JSP Files). To submit a product enhancement / feature request (RFE) go to: IBM RFE Community, and select Rational.

You may also find using the WebSphere Application Server (WAS) admin console settings during EAR install for web to be problematic working with the ibm-{ext|bnd}.xmi files.

Answer

OPTIONS:

  1. Edit project Web Deployment Descriptor Extensions for WAS
  2. Use the JSPBatchCompiler to compile immediately


In RAD v7.5 (and later), JSPs are precompiled upon deployment and is controlled by the WebSphere extended deployment descriptor.

Edit project Web Deployment Descriptor Extensions for WAS as follows:

Web 2.4 and previous:

  1. Open ../WEB-INF/web.xmi
  2. Click Extension tab
  3. Find General settings
  4. Check Pre-compile JSP
  5. Save


Web 2.5 and later:
  1. Open ../WEB-INF/web.xml
  2. Open WebSphere Deployment Descriptor
  3. Check Pre-compile JSP
  4. Save

Changing this setting will have JSPs pre-compiled upon deployment.

This setting will be in effect whenever you deploy to your local test environment.

If you export the WAR file and deploy on another server, the setting will be in effect as well.

For more information refer to the following information topics:

RAD 7.5 Info Center:

RAD 8.0 Info Center:

RAD 8.5 Info Center:

RAD 9.0 Info Center:

You can compile and validate your JSP syntax using the JSP Batch Compiler. Compiling your JSP files to enable faster responses to the initial client requests for the JSP files on your production Web server.

Procedure:

  1. Right click on a web project
  2. Click Java EE > Compile JSPs

For complete instructions, review the following information topics:

RAD 7.5 Info Center


RAD 8.0 Info Center


RAD 8.5 Info Center


RAD 9.0 Info Center:

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Tooling","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5.5;7.5.5.1;7.5.5.2;7.5.5.3;7.5.5.4;7.5.5.5;8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.4.1;8.0.4.2;8.0.4.3;8.5;8.5.1;8.5.5;9.0;9.0.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21662770