I believe it is because ${requestScope.map.c} returns "42". Since "42".equalsIgnoreCase("true") == false, ${not requestScope.map.c} == true.

Sorry i could not understand the explanation above(in Bold)..if i had missed any topic related to this in HFSJ please tell me the page number so that i can go back and read once again..

Thanks & Regards, Sudhakar Karnati

Dee Brown
Ranch Hand

Joined: Jun 14, 2008
Posts: 94

posted Jun 30, 2008 05:26:00

0

In the statement, "${not requestScope.map.c}", the "not" operator coerces the evaluation of "requestScope.map.c" (i.e. "42") to a boolean. In simple terms, a boolean X is true when X.equalsIgnoreCase("true") is true. Therefore, since "42".equalsIgnoreCase("true") == false, its negation (i.e. ${not requestScope.map.c}) is true.