- This topic has 4 replies, 4 voices, and was last updated 20 years, 11 months ago by
No Operation.
-
AuthorPosts
-
Thomas TrostelParticipantThe following string is marked as an invalid escape code “\\\\” .. actually its valid and translates to \\ but the editor thinks it is wrong.
Riyad KallaMemberWe need a bit more info. What version of software are you using (Eclipse, MyEclipse, JDK, etc.) and can you give us a few lines of the snippet of code that is causing the problem. Basically, we need a reproducable case so we can file it in the tracker for the devs, gotta make things easy on them 😉
Thomas TrostelParticipantEclipse 3.0 RC1 with MyEclipse 3.7.101
The offending line is inside a bean definition which looks like this:
<jsp:useBean id=”xxx315″ class=”xxx.xxx.dash.CheckStatus” scope=”request”>
<jsp:setProperty name=”xxx315″ property=”path” value=”\\\\xxxx\\win32app\\TWS\\tracker\\stdlist” />
<jsp:setProperty name=”xxx315″ property=”startTime” value=”XXX314″ />
<jsp:setProperty name=”xxx315″ property=”fileIdString” value=”= JCLFILE : e:\tracker\xxx\scripts\xxx315s.cmd” />
</jsp:useBean>As you can see, here we are trying to define a network URL as a bean property which starts with a double backslash.
If you need a sample project I can whip something together quick for a sample just shout and I can zip one together for you 😮
Scott AndersonParticipantThanks for taking the time to post this. I’ve logged it into our internal tracking system so we can resolve it in a subsequent release.
No OperationMember<jsp:useBean id=”xxx315″ class=”xxx.xxx.dash.CheckStatus” scope=”request”>
<jsp:setProperty name=”xxx315″ property=”path” value=”\\\\xxxx\\win32app\\TWS\\tracker\\stdlist” />
<jsp:setProperty name=”xxx315″ property=”startTime” value=”XXX314″ />
<jsp:setProperty name=”xxx315″ property=”fileIdString” value=”= JCLFILE : e:\tracker\xxx\scripts\xxx315s.cmd” />
</jsp:useBean>This is not a bug in the JSP editor, it is a bug in your code.
Please have a look into jsp-2_0-fr-spec.pdf chapter JSP1.6 “Quoting in Attributes”.correct quoting would look like:
<jsp:useBean id="xxx315" class="xxx.xxx.dash.CheckStatus" scope="request"> <jsp:setProperty name="xxx315" property="path" value="\\\\\\\\xxxx\\\\win32app\\\\TWS\\\\tracker\\\\stdlist" /> <jsp:setProperty name="xxx315" property="startTime" value="XXX314" /> <jsp:setProperty name="xxx315" property="fileIdString" value="= JCLFILE : e:\\\\tracker\\\\xxx\\\\scripts\\\\xxx315s.cmd" /> </jsp:useBean>
NOP
-
AuthorPosts