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:
- Edit project Web Deployment Descriptor Extensions for WAS
- 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:
- Open ../WEB-INF/web.xmi
- Click Extension tab
- Find General settings
- Check Pre-compile JSP
- Save
Web 2.5 and later:
- Open ../WEB-INF/web.xml
- Open WebSphere Deployment Descriptor
- Check Pre-compile JSP
- 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:
- Right click on a web project
- 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:
Related Information
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21662770