blob: 58879c990659ba81db8ce905d9186b59bc58dc9a [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"/>
<f:loadBundle var="noPackageBundle" basename="Bundle"/>
<h1>JSP Page</h1>
<!-- no errors -->
<h:outputText value="#{bundle.bundleProp2}"/>
<h:outputText value="#{noPackageBundle.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}"/>
<h:outputText value="#{noPackageBundle.x.y}"/>
<!-- warnings -->
<h:outputText value="#{-bundle.bundleProp1}"/>
<h:outputText value="#{bundle.bundleProp3}"/>
<h:outputText value="#{msg}"/>
<h:outputText value="#{bundle.x}"/>
<h:outputText value="#{noPackageBundle.notAProperty}"/>
<!-- errors -->
</f:view>
</body>
</html>