- This topic has 3 replies, 3 voices, and was last updated 20 years, 6 months ago by Scott Anderson.
-
AuthorPosts
-
mountjoyjMemberHi,
I have 300 “errors” – all due to JSP’s having something like this:
<jsp:forward page=”<%= “” %>”/>
(I had my own tags, but it seems to work for standard tags too)
Basically you get the error:
“expected %>”I suspect a parsing error….
Moreover, the JSP’s do compile and run fine. And now the IDE thinks that there are severe problems in the project, when there aren’t.
Any ideas? EclipseIDE 3.7.2. (BTW, how about making the “About MyEcliipse” dialog show the version number – I had to go to file system to see which version I had installed)
Thanks
Riyad KallaMemberBTW, how about making the “About MyEcliipse” dialog show the version number
Click Help > About, then click the MyEclipse logo button or any of the details buttons to find the version number. The Help > About main page is Eclipse’s, we and every other plugin has to play nice with it, so we only get buttons to show our details.
I have 300 “errors” – all due to JSP’s having something like this:
<jsp:forward page=”<%= “” %>”/>
This *is* actually an error. Per the JSP spec you cannot have unescaped double quotes inside of expressions like this. You must escape them:
<jsp:forward page="<%= \"\" %>"/>
While this may work on the app server you are using, it may not work on others. This is why we cannot support a situation like this that is out of spec, we run the risk of allowing ‘invalid’ code to get deployed to an app server which is just not an option.
Here is some info about the spec:
https://www.genuitec.com/forums/topic/compiler-complains-about-double-quotes-in-attributes-bug/&highlight=quotesAnd if you need the quotes in the value for formatting reasons, look here:
https://www.genuitec.com/forums/topic/custom-tag-issue-double-quotes-not-allowed/&highlight=quotes
mountjoyjMemberCrikey, and I’ve used this app on 3 different app servers.
Excellent, I’ll fix them..Thanks.
Scott AndersonParticipantBTW, how about making the “About MyEcliipse” dialog show the version number
In version 2.8, the version number is also shown on the main MyEclipse preference page at Window > Preferences > MyEclipse. Prior to 2.8 the version number is only available where Riyad indicated.
I believe another option on the quoting is to use both single and double quotes, instead of escaping like this:
<jsp:forward page='%= "" %>' />
-
AuthorPosts