blob: 16683f5800d4d993e76a5f1a98a06b0c1a2a014b [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 <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>