[ http://issues.apache.org/jira/browse/VELTOOLS-51?page=comments#action_12332126 ]
Niall Pemberton commented on VELTOOLS-51: ----------------------------------------- P.S. Sorry I don't use Velocity - the patch I just attached is un-tested. > Support for "non-resource" ActionMessage's introduced in Struts 1.2.7 > --------------------------------------------------------------------- > > Key: VELTOOLS-51 > URL: http://issues.apache.org/jira/browse/VELTOOLS-51 > Project: VelocityTools > Type: New Feature > Components: VelocityStruts > Reporter: Niall Pemberton > Assignee: Nathan Bubna > Priority: Trivial > Attachments: VelocityStrutsToolsNonResourceMessages.patch > > 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. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
