Struts国际化(定义资源)目录Struts国际化(定义资源)目录11.打开上一次创建的Struts项目22.打开ApplicationResources.properties23.复制一个ApplicationResources.properties24.复制一个ApplicationResources_en.properties25.修改login.jsp变为36.查看显示37.修改浏览器语言31.打开上一次创建的Struts项目2.打开ApplicationResources.properties输入一下语句:3.复制一个ApplicationResources.properties修改为:4.复制一个ApplicationResources_en.properties修改为:#Resourcesforparameter'com.neusoft.struts.ApplicationResources'#ProjectstrutsuserRegistration.username=UserNameuserRegistration.password=PassworduserRegistration.title=UserRegistration#Resourcesforparameter'com.neusoft.struts.ApplicationResources'#ProjectstrutsuserRegistration.username=\u7528\u6237\u540duserRegistration.password=\u5bc6\u7801userRegistration.title=\u7528\u6237\u6ce8\u518c\u9875\u9762#Resourcesforparameter'com.neusoft.struts.ApplicationResources'#ProjectstrutsuserRegistration.username=UserNameuserRegistration.password=PassworduserRegistration.title=UserRegistration5.修改login.jsp变为6.查看显示7.修改浏览器语言选择“Internet选项”%@pagelanguage=javapageEncoding=UTF-8%%@tagliburi==bean%%@tagliburi==html%htmlheadtitlebean:messagekey=userRegistration.title//title/headbodyhtml:formaction=/loginbean:messagekey=userRegistration.password/:html:passwordproperty=password/html:errorsproperty=password/br/bean:messagekey=userRegistration.username/:html:textproperty=username/html:errorsproperty=username/br/html:submit/html:cancel//html:form/body/html点击“语言”将“英语”上移在浏览: