Validating JSP Syntax

See Also

The Validate action enables you to detect syntax problems in JSP and tag files before you execute them on a server. Note that the Validate action does not translate the JSP code into a servlet. Therefore, the Validate action does not discover syntax errors that occur at translation time or runtime.

To validate JSP syntax:

  1. In the Filesystems window, right-click the JSP file or tag file and choose Validate from the contextual menu. The IDE displays the detected errors in the Output window.
  2. In the Output window, click an error to display the source of the error in the Source Editor.
tip  To validate all the JSP files in a web module, right-click the WEB-INF node and choose Validate All Pages from the contextual menu.

Troubleshooting

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

Forgetting to delimit EL expressions with curly braces ({}) is a common error that cannot be caught through validation, 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 validation output, there might be an internal cache problem. You might need to reboot the IDE to be able to validate 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 Web Modules

Legal Notices