DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22971>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22971 Bugs in MessageTag and MessageResources Summary: Bugs in MessageTag and MessageResources Product: Struts Version: Nightly Build Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Custom Tags AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Message tag has the 4 attributes arg0 - arg4 which take arguments that are used to give additional values to MessageFormat. But arg0 - arg4 are of type String instead of Object. This results in error messages if one uses format Strings like: todays date: {0,date,medium} This expression requires a Date not a String as parameter. If one changes the attributes to Object, everything is fine. This leads to another problem in MessageResources (line 346): format = new MessageFormat(formatString); The line needs to be changed to format = new MessageFormat(formatString,locale); Otherwise the date parameter from the above example gets always formatted with the default locale. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]