In the default MessageResources.properties, it includes things like "{0}
is required." I'd like to use one of these, and replace {0} with
something _that is itself_ a key in the MessageResources.properties. I
tried something like this:
MessageResources.properties:
some.message={0} is my message.
some.message.that=That
And then in my Action class:
errors.add( "property", new ActionMessage( "some.message", new
ActionMessage( "some.message.that" ) ) );
but this doesn't work (since the outer ActionMessage simply does a
toString() on the parameter). What's the best way of doing this?
Thanks,
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]