Setting the Compiler for a JSP or Servlet File

When you change the default compiler for JSP and servlet files, the change affects all JSPs and servlets for which you have not specifically assigned a compiler type. Setting a compiler type for an individual JSP or servlet overrides the default compiler setting.

To set the compiler for a JSP or servlet file:

  1. In the Explorer, click the Filesystems tab. Navigate to the web module subdirectory containing the JSP file or servlet for which you want to set the compiler. A JSP file would be in the web module's root directory. A servlet would be in the web module's WEB-INF/classes directory.
  2. Right-click the JSP or servlet to display the contextual menu, and choose Properties.
  3. On the Execution pane of the Properties window, click the value field of the Servlet Compiler property to activate the combo box. Choose a compiler type.
  4. When you have completed your changes, close the property sheet.

Compiler options include:


Legal Notices