CHAPTER 3: Best Practices in Java EE Web Development 113Logical Operators
Listing 3-8 illustrates the logical operators like &&,||, and the not operator in action. You can use this
code on a JSP file and run it on the server. The output is illustrated in Figure 3-4.
Listing 3-8. Logical Operators
| Logical Operator | Result |
| ${'${'}true && false} | ${true && false} |
| ${'${'}true || false} | ${true || false} |
| ${'${'}not true} | ${not true} |
Figure 3-3. Relational operators