Locale info : I18N « JSP « Java






Locale info

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head><title><fmt:message key="Welcome" bundle="i18n.WelcomeBundle" /></title></head>
<body>
<h2>Here is your Locale info...</h2>

<fmt:message key="Welcome" bundle="i18n.WelcomeBundle" />

<%--  <c:set var="clientLocale" value="${pageContext.request.locale}" />
Locale: <c:out value="${clientLocale.displayName}" />
 <br />
Locale country: <c:out value="${clientLocale.displayCountry}" />
<br />
Locale language: <c:out value="${clientLocale.displayLanguage}" />--%>

</body>
</html>


           
       








Related examples in the same category

1.Locale Display in a JSP
2.Current Locale
3.JSP: Define the string in tag (I18N)
4.JSP Internationalization and Localized Content 1JSP Internationalization and Localized Content 1
5.JSP Internationalization and Localized Content 2JSP Internationalization and Localized Content 2
6.JSP Internationalization and Localized Content:Currency Formatting and locales
7.JSP Internationalization and Localized Content: Date Formatting and locale
8.Internationalized Web Applications: JavaServer Pages