需要
这个文件需要运行命令
native2ascii ApplicationResources_zh_CN_bak.properties ApplicationResources_zh_CN.propertiesApplicationResources_zh_CN_bak.properties 里你就写中文,后面的文件自动生成,给程序调用
这个文件需要运行命令
native2ascii ApplicationResources_zh_CN_bak.properties ApplicationResources_zh_CN.propertiesApplicationResources_zh_CN_bak.properties 里你就写中文,后面的文件自动生成,给程序调用
解决方案 »
- 这组数如何均分
- ext 页面自动刷新3
- quzrtz中如何动态修改一个任务???在线等答案。。。
- 关于从公网访问内部服务器的问题
- struts登录验证:struts连接orcale数据库出现Initializing application data source dataSource错误
- hibernate 映射oracle一定要建立序列吗?
- struts 标签问题bean:define,..两天没弄出来,求各位帮忙!!
- hibernate能否更新oracle已生成表中的字段长度
- J2ee应用开发详解这本书怎么样?
- tomcat 5.0.29服务器,spring 中 配置 hibernate 的数据库 连接池(用tomcat的连接池)问题?
- 什么是web service?
- J2EE的安装问题(处女贴)!很急!!!!!
lication_zh_CN.properties
可这样生成的application_zh_CN.properties里也是乱码啊, test.title=???????
都是问号?
你只需配置好application.properties这个文件
中文的配置文件,系统会根据你的浏览器语言自动寻找的
当然也要符合规范,一般就是在英文的配置文件后面加上语言的名字
一般中文是application_zh_CN.properties
台湾的是application_zh_TW.properties
native2ascii -encoding GB2312 application.properties > application_zh_CN.properties
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
web.xml要用 <taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>