facebook

rtexprvalue with quoted string in jsp gives error

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

    Erik Reuter
    Member

    Stumbled upon a problem with realtime-expression values and having strings with quotationmarks inside the expression.

    Example:

    <jsp:include page=”/somepage” flush=”true”>
    <jsp:param name=”bla” value=”<%= (String) request.getAttribute(“hello”) %>”/>
    </jsp:include>

    Saving the file generates a validation error on the quotation marks around the string “hello” inside the rtexpr.

    I’m not using the above example, but are getting the error on some of my custom tags having rtexprvalues like the above. The code runs nicely on the server.

    I’m running 3.7RC2 with Eclipse M6 on Fedora Core 1 Linux.

    #203050 Reply

    Riyad Kalla
    Member

    Hey erik,
    You need to escape the quotes:

    
     <jsp:param name="bla" value="<%= (String) request.getAttribute(\"hello\") %>"/>
    
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: rtexprvalue with quoted string in jsp gives error

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