IBM Support

Validation of JSP Include reports missing tags

Troubleshooting


Problem

A JSP Include contains several other JSPs (fragments) that form both the header and footer portions of a page, and the footer JSP commonly ends many of the tags that are started in another JSP. In JSP development with Rational Application Developer (RAD) version 7.0, the footer JSP results in many errors shown in the Problems view as: no start tag.

Cause

RAD version 7.0 introduced the ability to have JSP fragments validated with the results shown in the Problems view. JSP fragments were previously ignored by validation. In addition, HTML validator, which was turned off by default in RAD 6, is now turned on by default in version 7, but it does not check for the Disable JSP fragment validation preference, so it validates all html, jsp and jspf documents.

Resolving The Problem

To work around this problem, follow these steps:

  1. Disable html validation:
    • For workbench: Window > Preferences > Validation > HTML Syntax Validator
    • For project: Project Properties > Validation > HTML Syntax Validator
  2. Disable JSP fragment validation:
    • For workbench: Window > Preferences > Web and XML > JSP Files > Uncheck "Validate JSP fragments"
    • For project/file: Project/File Properties > JSP Fragment > Check "Enable specific setting" > Uncheck "Validate JSP fragments"
  3. If options were not visible, enable Web developer (advanced) capabilities from Window > Preferences > General > Capabilites > Advanced...
  4. Run validation again and the error should go away.

Also refer to the Web Tools known limitations section 2.5 in the RAD release notes. The situation described in the release notes is different from the one described here but the underlying cause and solution is the same. You can find the release notes for RAD at: INSTALL_PATH\SDP70\rad\documentation\en\readme\web_tools.html

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Development","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.0.4;7.0.0.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Development","Platform":[{"code":"","label":""}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.0.4;7.0.0.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 September 2020

UID

swg21254986