标题:不能实现国际化
只看楼主
非凡DZ
Rank: 1
等 级:新手上路
帖 子:231
专家分:0
注 册:2007-4-6
 问题点数:0 回复次数:0 
不能实现国际化
<%@ page c %>
<[email=%@taglib]%@taglib[/email] prefix="c" uri="[url=http://java.]http://java.[/url]" %>
<[email=%@taglib]%@taglib[/email] prefix="fmt" uri="[url=http://java.]http://java.[/url]" %>
<c:if test="${param.radio} == 'zh' || ${param.radio} == null">
<fmt:setLocale value="zh" scope="session"/>
</c:if>
<c:if test="${param.radio} == 'en'">
<fmt:setLocale value="en" scope="session"/>
</c:if>
<fmt:setBundle basename="dz" scope="session"/>
<html>
<head>
<title>
<fmt:message key="title"/>
</title>
</head>
<body>
<table>
<tr>
<td><fmt:message key="userName"/></td>
<td><input name="userName"/></td>
</tr>
<tr>
<td><fmt:message key="password"/></td>
<td><input type="password" name="password"/></td>
</tr>
</table>
<form action="index.jsp" method="GET">
<input type="radio" name="radio" value="zh"/><fmt:message key="chinese"/><br />
<input type="radio" name="radio" value="en"/><fmt:message key="english"/><br />
<input type="submit" value="<fmt:message key="submit"/>"/>
</form>
</body>
</html>
请问为什么我的代码不能实现国际化呢 请大家指点 谢谢 是哪里出了问题
搜索更多相关主题的帖子: radio scope fmt param 
2007-12-01 15:22



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-189744-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.421513 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved