On Tue, Feb 05, 2002 at 12:30:25PM -0500, Henry Lu wrote:
# Here is my code:
#           errors.add(ActionErrors.GLOBAL_ERROR,
#                 new ActionError("error.id.required", "id=123"));

  then you have to provide message for the key "error.id.required".
  check the content of the file you specified as application parameter
  of the ActionServlet.
  eg. if you have 
  
  <servlet>
      <servlet-name>action</servlet-name>
      <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>application</param-name>
          <param-value>my.Msg</param-value>

  then the properties file should be one of WEB-INF/classes/my/Msg.properties,
  WEB-INF/classes/my/Msg_xx.properties or WEB-INF/classes/my/Msg_xx_YY.properties
  where xx_YY is the current locale

  the appropriate properties file should contain

  error.id.required=You must supply a valid id.

  or something like this.

  Does it help?
  
# Could you send me part of your code?

  it looks the same... :)

  Pavel

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to