Details
-
New Feature
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
Description
Struts 1.2.7 introduced "non-resource" ActionMessage's. Rather than the ActionMessage containing a key to a message in a resource bundle it contains the actual message itself.
- ActionMessage.isResource() returns false for "non-resource" messages.
- ActionMessage.getKey() returns the actual message for "non-resource" messages.
The main motivation for the Struts change were the previously ignored Commons Validator's "bundle" and "resource" attributes - now Struts resolves the message during validation using those attributes if specified - creating a "non-resource" ActionMessage. For this to work in Struts 1.2.7 - Commons Validator 1.1.4 is also required.
The way Velocity's tools are coded it should work anyway in most cases - but for completeness I'm attaching a patch.