facebook

JSP Editor: multiline attribute value [Closed]

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

    Brice Ruth
    Member

    The following JSP code:

                                          <c:if test="${
                                              user.map.username == 'user1' || 
                                              user.map.username == 'user2' || 
                                              user.map.username == 'user3' || 
                                              user.map.username == 'user4'}">
    

    Is indicated as an error in the JSP Editor. The exact error given is:

    String literal is not properly closed by a double-quote

    Since Jasper (Tomcat’s JSP compiler) doesn’t complain, I’m thinking that it’s valid, correct me if I’m wrong.

    Stats:
    What operating system and version are you running?

    Windows XP Pro, SP1

    What Eclipse version and build id are you using? (Help > About Eclipse Platform)

    3.0.0; 200405290105

    – Was Eclipse freshly installed for MyEclipse?

    Yes

    – If not, was it upgraded to its current version using the update manager?
    – Are any other external plugins installed?

    No

    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*

    6

    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)

    3.7.101

    What JDK version are you using to run Eclipse? (java -version)

    1.4.2_03-b02

    What JDK version are you using to launch your application server?

    1.4.2_03-b02

    What application server are you using?

    Tomcat 5.0.25

    #210176 Reply

    Riyad Kalla
    Member

    MyEclipse doesn’t support JSP 2.0 yet, so the use of expression language dying here is not surprising. You used the correct workaround (to turn off validation) until ME gets support for JSP 2.0.

    #210177 Reply

    Brice Ruth
    Member

    This isn’t JSP 2.0 syntax .. it actually gets deployed (in the end) to a Tomcat 4.1 server, so I know for a fact that its legit JSP 1.2 EL syntax.

    Does that matter?

    #210179 Reply

    support-michael
    Keymaster

    This isn’t JSP 2.0 syntax .. it actually gets deployed (in the end) to a Tomcat 4.1 server, so I know for a fact that its legit JSP 1.2 EL syntax.

    Does that matter?

    bdruth is correct. This is not a JSP2 issue but rather a problem with a multi-line attribute value. Thanks for reporting this. I have submitted a problem report to have our dev team address it ASAP.

    #210181 Reply

    Riyad Kalla
    Member

    Sorry about that bdruth, I guess I was going on autopilot there.

    Michael thank you for the correct and filing the bug.

    #210225 Reply

    Brice Ruth
    Member

    OK, I’ll look for a fix in a future release. Thank you!

    #210297 Reply

    No Operation
    Member

    a workaround for the current version is:

    <c:if test='${   user.map.username == "user1" ||
                                    user.map.username == "user2" ||
                                    user.map.username == "user3" ||
                                    user.map.username == "user4"}'> 

    NOP

    #210322 Reply

    Brice Ruth
    Member

    Sincde the code works fine in Tomcat, and the little red X doesn’t bug me too much, I’ll wait for the bug to be fixed in the next release!

    Thanks, tho!

    #212323 Reply

    Riyad Kalla
    Member

    Fixed in 3.8 GA

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: JSP Editor: multiline attribute value [Closed]

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