你是不是用的STRUTS啊?资源文件有没有放在路径上?
举例:/WEB-INF/ApplicationResource.properties
<web-app>
  <!-- Action Servlet Configuration -->
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>application</param-name>
      <param-value>/WEB-INF/ApplicationResource</param-value>
    </init-param>
    <init-param>

解决方案 »

  1.   

    ApplicationResource.properties是怎么制作的 ?
    我是用文本编辑,然后改掉后缀,这方法对吗?
      

  2.   

    这是我用别人的例子做的 
    login.title=Struts Demo
    login.heading=<h1>Welcome to the StrutsDemo !</h1>
    lgoin.message=Welcome to the StrutsDemo !
    login.inputPassword=Please input Password :
    login.inputName=Please input Username :
    loginOK.title= User Login Successfull
    loginOK.message=<h1>Login Successfull !</h1>
    error.username.required=<h3><font color="red">UserName is Required !</font></h3>
    error.password.required=<h3><font color="red">Password is Required !</font></h3>
    error.username.wrong=<h3><font color="red">UserName is Wrong !</font></h3>
    error.password.wrong=<h3><font color="red">Password is Wrong !</font></h3>
    errors.footer=</ul><hr>
    errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
    有不对的地方吗?
      

  3.   

    为什么要把后缀改掉?改成什么了?在web.xml里面定义的source与你的文件名匹配吗?