Given this
servlet code snippet:
String num = “2”;
request.setAttribute(“num”, num);
Integer i = new Integer(3);
request.setAttribute(“integer”, i);
What prints for the following EL?
${requestScope[“integer”] ne 4 and 6 le num || false}
I thought it prints
true because: true and false or false = true
But in the book O'Reilly Head First Servlets and
JSP (2nd Edition) they state that it prints
false! I just want to make sure I'm not the one who is mistaken here.
Thanks,
Igor