The JSP validator does not parse quoted text correctly. This leads to many false positive errors and warnings. Some sample problematic JSP fragments follow. Note that echo is a custom tag that just outputs the content of the echo attribute.
Fragment 1:
<tags:echo echo=”\\\’${‘hello world’}\\\'” />
Fragment 2:
<p>${‘hello \’world’}</p>
Fragment 3:
<p>${“hello \”world”}</p>
Fragment 4:
<tags:echo echo=”${‘hello world’}” />
Fragment 5:
<tags:echo echo=”\\\”\${‘hello world’}” />
Fragment 6:
<tags:echo echo=”\\\”\\${‘hello world’}” />
System info:
*** Date:
Monday, 16 February 2009 23:17:09 o’clock GMT
** System properties:
OS=WindowsXP
OS version=5.2.0
Java version=1.5.0_17
*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 7.0
Build id: 7.0-20081201
*** Eclipse details:
Eclipse SDK
Version: 3.4.1
Build id: M20080911-1700
Eclipse Platform
Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
Build id: M20080911-1700
Eclipse Java Development Tools
Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
Build id: M20080709-0800
Eclipse Plug-in Development Environment
Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
Build id: M20080703-0800
Eclipse Project SDK
Version: 3.4.1.R34x_v20080827-7O7S78C2J40sK2o_ALcK8tLN_yZSJeg0P-3EtL4Ra90kv
Build id: M20080911-1700
Eclipse Graphical Editing Framework GEF
Version: 3.4.1.v20080806-67718083A56B4H2A3213573
Build id: 200809101400
Eclipse RCP
Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
Build id: M20080703-0800
Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
C:\Program Files (x86)\eclipse\\plugins\org.eclipse.platform_3.3.101.v200809111700\splash.bmp
-launcher
C:\Program Files (x86)\eclipse\eclipse.exe
-name
Eclipse
–launcher.library
C:\Program Files (x86)\eclipse\\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
-startup
C:\Program Files (x86)\eclipse\\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
-vm
C:\Program Files (x86)\Java\jre1.5.0_17\bin\client\jvm.dll