Internationalization
I plan to design a web page with language options like English and Traditional Chinese. User could choose the output language they want.
My computer uses the Hong Kong SAR for the regional and the language setting. When I open a jsp page, it displayed "?title?" for the title. Below is an example of my code:
Code of welcome.jsp:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<fmt:bundle basename="welcome">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><fmt:message key="title"/></title>
</head>
</html>
</fmt:bundle>
Code of welcome_en.properties:
title=Welcome!
Code of welcome_zh_hk.properties:
title=歡迎光臨!
But, when I change the language setting to English, it could display normally. What had I missed show that I could not displayed Traditional Chinese as desired?

