摘要: Struts2 中国际化的配置与使用 1. 资源文件的导入 通过配置 struts.properties 或者 struts.xml 来完成 struts.properties 的配置为: struts.custom.i18n.resources=config.i18n.ApplicationResources-cn,config.i18n.ApplicationResources-en 多个资源文件以逗号【,】进行分割,config.i18n.ApplicationResources-cn 包含了资源文件的路径及文件名称,但不包括文件后缀名。 struts.xml 的配置为: <con 阅读全文
posted @ 2012-10-15 13:49 戴眼镜的码农 阅读(669) 评论(0) 推荐(0) 编辑