facebook

jsp editor bug in 3.7RC2 [Closed]

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

    jfarley
    Member

    the jsp editor reports errors when you use constant strings in rtexpr values. ie, if you have a tag “foo” that takes an rtexpr value “bar” and use it like this:

    <a:foo bar="<%= "a" + "b" + "c" %>" />

    the editor reports an error on the contants strings in the attribute rtexpr value even though this is valid syntax.

    #201848 Reply

    No Operation
    Member

    Sorry to say, but your syntax is NOT valid. In JSP1.2 you could read your code as
    attribute with expression inside.
    Now this was clarified and it is
    a runtime-expression.
    You have to escape the quotes:

    
    <a:foo bar="<%= \"a\" + \"b\" + \"c\" %>" />
    

    This is not a lucky decision, but it was defined this way.

    NOP

    #201870 Reply

    support-michael
    Keymaster

    Thanks NOP.

    Michael

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: jsp editor bug in 3.7RC2 [Closed]

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