blob: 16683f5800d4d993e76a5f1a98a06b0c1a2a014b [file] [log] [blame]
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<f:view>
<f:loadBundle var="bundle" basename="beans.Bundle"/>
<f:loadBundle var="msg" basename="TestMessages"/>
<h1>JSP Page</h1>
<!-- no errors -->
<h:outputText value="#{bundle.bundleProp2}"/>
<h:outputText value="#{bundle.bundleProp1 && myBean.stringProperty}"/>
<h:outputText value="#{empty bundle}"/>
<h:outputText value="#{empty bundle.bundleProp2}"/>
<h:outputText value="#{bundle.bundleProp2 + 5}"/>
<h:outputText value="#{bundleProp2}"/>
<h:outputText value="#{bundle.x.y}"/>
<!-- warnings -->
<h:outputText value="#{-bundle.bundleProp1}"/>
<h:outputText value="#{bundle.bundleProp3}"/>
<h:outputText value="#{msg}"/>
<h:outputText value="#{bundle.x}"/>
<!-- errors -->
</f:view>
</body>
</html>