- This topic has 2 replies, 2 voices, and was last updated 20 years, 5 months ago by James I. Falek.
-
AuthorPosts
-
James I. FalekMemberHi,
I am still seeing problems 😥 with the JSP Editor becoming (color) confused with javascript when a function contains “<“. I thought that this was a problem was addressed earlier, but I could not find the thread, so please excuse me if this is redundant 😳 .
The following is a jsp that I just created. When I look at it using the ME JSP Editor, everthing after the “<” in the javascript function is red until the close script tag. I have been able to minimize it by putting in comments ” <!– –> “, but this is not desired.
Thank you,
James
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head><script language=”javascript”>
function maxSize(size, aString)
{
if (aString.length <= size)
{
return aString;
}
return null
}
</script><title>MyJsp.jsp</title>
</head>
<body>
</body>
</html>– System Setup ——————————-
Operating System and version: WindowsXP
Eclipse version: 2.1.3
Eclipse build id: 200403101828
Fresh Eclipse install (y/n): n
If not, was it upgraded to its current version using the update manager? n
Other installed external plugins:
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 1
MyEclipse version: 2.8 Beta-1
Eclipse JDK version: 1.4
Application Server JDK version: 1.4
Are there any exceptions in the Eclipse log file? no– Message Body ——————————-
Riyad KallaMemberJames,
This issue was not addressed and there was quite a long thread about exactly what the HTML spec, when dealing with script tags, is. Your solution is the correct way to write scripts inlined in HTML (surrounded with comments).
James I. FalekMember🙁 OK, not quite the answer that I was look for, but is there any interest to fix up the jsp editor in future editions so that it doesn’t have this “feature”? 💡
Thanks,
James
-
AuthorPosts