| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 926 人关注过本帖
标题:不能实现国际化
只看楼主 加入收藏
非凡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
快速回复:不能实现国际化
数据加载中...
 
   



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

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