You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Nathan Bubna (JIRA)" <ve...@apache.org> on 2005/10/15 04:14:45 UTC
[jira] Resolved: (VELTOOLS-51) Support for "non-resource" ActionMessage's introduced in Struts 1.2.7
[ http://issues.apache.org/jira/browse/VELTOOLS-51?page=all ]
Nathan Bubna resolved VELTOOLS-51:
----------------------------------
Resolution: Fixed
Thanks! http://svn.apache.org/viewcvs?rev=321277&view=rev
> 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: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org