facebook

Invalid escape code for quad slash [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #208693 Reply

    Thomas Trostel
    Participant

    The following string is marked as an invalid escape code “\\\\” .. actually its valid and translates to \\ but the editor thinks it is wrong.

    #208697 Reply

    Riyad Kalla
    Member

    We 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 😉

    #208705 Reply

    Thomas Trostel
    Participant

    Eclipse 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 😮

    #208748 Reply

    Scott Anderson
    Participant

    Thanks 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.

    #208799 Reply

    No Operation
    Member

    <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

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Invalid escape code for quad slash [Closed]

You must be logged in to post in the forum log in