%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"
import="java.util.Locale, java.util.ResourceBundle"%>
Insert title here
<%
// Traduction dans des fichiers
Locale locale = new Locale ("fr", "FR");
ResourceBundle messages = ResourceBundle.getBundle ("bundles.messages", locale);
out.println (messages.getString ("bonjour"));
%>
<%
// Traduction dans des classes
locale = new Locale ("en", "US");
messages = ResourceBundle.getBundle ("com.llgc.po.Text", locale);
out.println (messages.getString ("bonjour"));
%>