facebook

JSP Editor Flagging Tag Content as Error

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #207696 Reply

    Hi,

    I tried to find a solution to this, but was not able to find anything related.

    I have a tag library that I am passing “\d\d\d” to one of the attributes. The JSP editor is complaining that it is an invalid escape sequence. I understand that in Java it is an invalid sequence, but in the JSP it is just a string of characters. There are not problems with these pages when they run. It also complains if I use “\\d\\d\\d”.

    I am running on Linux, jdk 1.4.2, Eclipse M8.

    Thanks

    Michael

    #207704 Reply

    Riyad Kalla
    Member

    Michael,
    I don’t know the *reason* for this, but I imagine it has something to do with how many things need to parse the string before it gets assigned, kind of how escaping certain chars with the Regexp support in 1.4 requires things like “\\\\p”.

    Anyway, the following code compiles without an error:

    
    <bean:define id="var" value="\\\\d\\\\d" />
    

    Can you try that, and see if you get the result in your taglib that you want? If not, I”ll kick it back to the dev for a reply.

    #210490 Reply

    Riyad,

    Sorry for the long wait, I have not had a chance to test this. But I hope to be getting to it soon. This code is in an old project that I will be working on soon.

    Thanks

    Michael

    #210494 Reply

    Riyad Kalla
    Member

    No worries, thanks for the update.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSP Editor Flagging Tag Content as Error

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