cbateman | 78cc5ad | 2006-10-20 23:34:10 +0000 | [diff] [blame^] | 1 | <%@page contentType="text/html"%> |
| 2 | <%@page pageEncoding="UTF-8"%> |
| 3 | <%-- |
| 4 | The taglib directive below imports the JSTL library. If you uncomment it, |
| 5 | you must also add the JSTL library to the project. The Add Library... action |
| 6 | on 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 | <f:loadBundle var="bundle" basename="beans.Bundle"/> |
| 24 | <f:loadBundle var="msg" basename="TestMessages"/> |
| 25 | |
| 26 | <h1>JSP Page</h1> |
| 27 | <!-- no errors --> |
| 28 | <h:outputText value="#{bundle.bundleProp2}"/> |
| 29 | <h:outputText value="#{bundle.bundleProp1 && myBean.stringProperty}"/> |
| 30 | <h:outputText value="#{empty bundle}"/> |
| 31 | <h:outputText value="#{empty bundle.bundleProp2}"/> |
| 32 | <h:outputText value="#{bundle.bundleProp2 + 5}"/> |
| 33 | <h:outputText value="#{bundleProp2}"/> |
| 34 | <h:outputText value="#{bundle.x.y}"/> |
| 35 | |
| 36 | <!-- warnings --> |
| 37 | <h:outputText value="#{-bundle.bundleProp1}"/> |
| 38 | <h:outputText value="#{bundle.bundleProp3}"/> |
| 39 | <h:outputText value="#{msg}"/> |
| 40 | <h:outputText value="#{bundle.x}"/> |
| 41 | |
| 42 | <!-- errors --> |
| 43 | |
| 44 | </f:view> |
| 45 | </body> |
| 46 | </html> |