merci pour votre reponse
au fait je sais pas pourquoi ça fonctionne pas je suis nouveau en jsp.
bref voici mon code :
le fichier language_fr.properties
1 2 3
|
MENU_ABOUT = A propos
MENU_HOME = Accueil |
ensuite dans le fichier index.jsp
<%@ include file="layout/home.jspf" %>
dans le fichier home.jspf :
1 2 3 4 5 6 7 8 9 10 11 12 13
|
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:loadBundle basename="lib.messages" var="msg"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<f:view>
<h:outputText value="#{msg.MENU_ABOUT}" />
</f:view> |
Partager