Community
Participate
Working Groups
Hello everyone, the following problem occours on WTP 1.5 RC4: 1. create a new jsp 2. paste the following: <% String bla = "%>"; <b>As you can see, this is wrongly recognized as a html section The parser marks line 2 as an error but this code seems correct. Best Regards, Patric Rufflar
I'll admit, I didn't look up the spec right now, but I do believe that the '%>' is supposed to be taken as the matching end of previous '<%'. And that if you really wanted '%>' in the string, you'd have to escape them. Please re-open if you can point me that part of the JSP spec which would prove me wrong.
Running it through Tomcat, I get this error: Jun 1, 2006 4:09:15 PM org.apache.jasper.compiler.Compiler generateClass SEVERE: Error compiling file: /D:/jakarta-tomcat-5.0.28/work/Catalina/localhost/webApp//org/apache/jsp\test4_jsp.java [javac] Compiling 1 source file D:\jakarta-tomcat-5.0.28\work\Catalina\localhost\webApp\org\apache\jsp\test4_jsp.java:43: unclosed string literal String bla = " ^ 1 error
This is part of a mass update to close out all stale WTP bugs which are in the resolved state without an appropriate targeted version. If you feel this bug was closed inappropriately, please reopen.