2009-8-27 17:35:27 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: The first TextProvider in the ValueStack (action.Spread) could not locate the message resource with key '登录页面'
2009-8-27 17:35:27 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: The default value expression '登录页面' was evaluated and did not match a property.  The literal value '登录页面' will be used.
2009-8-27 17:36:03 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: The first TextProvider in the ValueStack (action.LoginCheck) could not locate the message resource with key '登录页面'
2009-8-27 17:36:03 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: The default value expression '登录页面' was evaluated and did not match a property.  The literal value '登录页面' will be used.
2009-8-27 17:36:10 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: The first TextProvider in the ValueStack (action.LoginCheck) could not locate the message resource with key '登录页面'
2009-8-27 17:36:10 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: The default value expression '登录页面' was evaluated and did not match a property.  The literal value '登录页面' will be used.以下是我的资源文件
struts.messages.error.content.type.not.allowed=仅限JPG格式图片
struts.messages.error.file.too.large=图片大小不能超过 200 KB
struts.messages.error.uploading=图片上传发生内部错误
username=用户名
password=密码
login=登录
reset=清除
loginPage=登录页面
title=教材推广模板

解决方案 »

  1.   

    错误信息是说你的Struts2的I18N用的不对,你应该用loginPage作为Key去检索出相应资源文件里的值,而不是相反.正确的写法比如: <s:text name="loginPage"/>
    这样就会在页面上显示 登陆页面 
      

  2.   

    支持楼上,楼主别把key跟value搞反了
    <s:text name="loginPage"/> 或者<s:property value="%{getText('loginPage')}"/>