Compiling a JSP File

See Also

When you compile a JSP file you can detect syntax problems before you execute the file on a server. Compilation also translates the JSP file into a servlet. Therefore, compilation discovers syntax errors that occur at translation time and at compile time. If a JSP file references a tag file, the referenced tag file is compiled with the JSP file.

To compile a JSP file:

  1. Do one of the following:
  2. In the Output window, click an error to jump to the source of the error in the Source Editor.

Troubleshooting

The following list shows some typical compilation messages and possible solutions:

Forgetting to delimit EL expressions with curly braces ({}) is a common error that cannot be caught through compilation, because the text is valid syntax. To catch this type of error, look for expressions that are not highlighted with the color used for EL expressions.

If you see a the following compilation output, there might be an internal cache problem. You might need to reboot the IDE to be able to compile the JSP file.

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/SimpleTagSupport
See Also
About JSP Syntax
Editing a JSP File
Viewing the JSP's Servlet
About Debugging and Testing Web Applications

Legal Notices