blob: bcafa50ab56582acf0eca05904956a594a6d567c [file] [log] [blame]
cbateman78cc5ad2006-10-20 23:34:10 +00001<%@page contentType="text/html"%>
2<%@page pageEncoding="UTF-8"%>
3<%--
4The taglib directive below imports the JSTL library. If you uncomment it,
5you must also add the JSTL library to the project. The Add Library... action
6on Libraries node in Projects view can be used to add the JSTL 1.1 library.
7--%>
8
9<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
10<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
11<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
12
13<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
14 "http://www.w3.org/TR/html4/loose.dtd">
15
16<html>
17 <head>
18 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
19 <title>JSP Page</title>
20 </head>
21 <body>
22 <f:view>
23 <h1>JSP Page</h1>
24 <!-- no errors -->
25 <h:outputText value="#{myBean.booleanProperty && myBean.booleanProperty}"/>
26 <h:outputText value="#{myBean.booleanProperty and myBean.booleanProperty}"/>
27 <h:outputText value="#{myBean.booleanProperty && true }"/>
28 <h:outputText value="#{myBean.booleanProperty and true }"/>
29 <h:outputText value="#{'true' && myBean.booleanProperty}"}/>
30 <h:outputText value="#{'true' and myBean.booleanProperty}"}/>
31
32 <!-- warnings -->
33 <h:outputText value="#{false && myBean.booleanProperty}"/>
34 <h:outputText value="#{false and myBean.booleanProperty}"/>
35 <h:outputText value="#{null && myBean.booleanProperty }"/>
36 <h:outputText value="#{null and myBean.booleanProperty }"/>
37 <h:outputText value="#{'notTrue' && myBean.booleanProperty}" }/>
38
39 <h:outputText value="#{myBean.booleanProperty && false}"/>
40 <h:outputText value="#{myBean.booleanProperty and false}"/>
41 <h:outputText value="#{myBean.booleanProperty && null }"/>
42 <h:outputText value="#{myBean.booleanProperty and null}"/>
43 <h:outputText value="#{myBean.booleanProperty && 'notTrue'}" }/>
44 <h:outputText value="#{true && false}"/>
45 <h:outputText value="#{null && true}"/>
46
47 <!-- errors -->
48 <h:outputText value="#{myBean.integerProperty && true}"/>
49 <h:outputText value="#{true && myBean.integerProperty}"/>
50 <h:outputText value="#{4 && true}/>
51 </f:view>
52 </body>
53</html>