Forum Stats

  • 3,853,190 Users
  • 2,264,189 Discussions


BUG: JDeveloper 11G - \" inside string

610520 Member Posts: 27
edited Oct 15, 2008 10:50AM in JDeveloper and ADF

Taste the difference:

+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"+
+<%@ page contentType="text/html;charset=windows-1251"%>+
+ <head>+
+ <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>+
+ <title>test</title>+
+ </head>+
+<% String s=true?"onload=('top.location.replace(\"test.jsp\");')":""; %>;+
+ <body <%=true?"onload=('top.location.replace(\"{color:#ff0000}_test.jsp\");')":""_{color}%>>+
+ </body>+

Why JDeveloper editor show error on second variant?


  • Frank Nimphius-Oracle
    Frank Nimphius-Oracle Member Posts: 29,689 Bronze Badge
    Hi the stings seems identical to me. However, the code seems kind of malfunctioning to ma anyway

    <% String s=true?"onload=('top.location.replace(\"test.jsp\");')":""; %>;

    this is no comparison. You assign the value true to the String s. To use the notation you want, this would have been a check for equality "=="


    What is "true" ? Is it a variable you defined ? The directive you use is one where you assign values to a variable

  • Hi Frank,
    this is not a problem of the semantics of the string...

    I could reproduce it with a string like this
    or even
    " ' \" \" ' "
    . The editor is not complaining when you remove the

This discussion has been closed.