You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hohlen, John" <JH...@erac.com> on 2002/09/10 16:35:17 UTC

??? In JSP Error Message Using Struts 1.1 and Multiple Message Re source Files

I'm currently seeing "????" in my error messages using the <html:errors> tag
in Struts 1.1 (b2) with multiple message resource files.  For example, I see
the following:

Correct the following error(s):
???en_US.Please enter user ID and password.???

I understand the "???" will appear when an unknown message key is used if
you have null set to "false" in the message-resources declaration.  For
example:

<message-resources key="LOGIN_MESSAGES_KEY" 
                     parameter="com.abc.training.LoginMessages" 
                     null="false"/>

However, the message key is being found because "Please enter user ID and
password" is the correct "value" for the key.  More specifically, my
"com.abc.training.LoginMessages" file has the following key/value:

error.login.blankUserIdPassword = Please enter user ID and password. 

My Java code poplulates the errors container as follows:
     
      ActionErrors errors = new ActionErrors();
      ResourceBundle bundle =
ResourceBundle.getBundle("com.abc.training.LoginMessages");
      errors.add(ActionErrors.GLOBAL_ERROR,
                 new
ActionError(bundle.getString("error.login.blankUserIdPassword")));

Any ideas on why I'm seeing the "???" if the key is being successfully
found?

Thanks,

JOHN HOHLEN

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>