Skip to main content
summaryrefslogtreecommitdiffstats
blob: fcb5a31b8542c919bfd21c0ff325f4c0924ef334 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<%@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">

<%-- Note: this test is valid for JSF >=1.2 only. --%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
    <f:view>
   
    <h1>JSP Page</h1>
    	<!--  no errors -->
    	<h:outputText value="#{resBundleProp1.bundleProp2}"/>
		<h:outputText value="#{noPackageBundle.bundleProp2}"/>
    	<h:outputText value="#{resBundleProp1.bundleProp1 && myBean.stringProperty}"/>
    	<h:outputText value="#{empty resBundleProp1}"/>
    	<h:outputText value="#{empty resBundleProp1.bundleProp2}"/>
    	<h:outputText value="#{resBundleProp1.bundleProp2 + 5}"/>
		<h:outputText value="#{bundleProp2}"/>
		<h:outputText value="#{resBundleProp1.x.y}"/>
		<h:outputText value="#{noPackageBundle.x.y}"/>
		
		<h:outputText value="#{resBundleProp2.name}"/>
		<h:outputText value="#{resBundleProp2.movie}"/>

		<!--  warnings -->
    	<h:outputText value="#{-resBundleProp1.bundleProp1}"/>
    	<h:outputText value="#{resBundleProp1.bundleProp3}"/>
	   	<h:outputText value="#{msg}"/>
	   	<h:outputText value="#{resBundleProp1.x}"/>
		<h:outputText value="#{noPackageBundle.notAProperty}"/>
		
		<h:outputText value="#{resBundleProp2.bundleProp2}"/>
		<h:outputText value="#{resBundleProp2.notAPropAtAll}"/>
		
		<!-- errors -->

    </f:view>
    </body>
</html>

Back to the top