Thanks Wes,
Thanks for your help. The snippet you wrote is valid code, however I was
hoping for a similar solution where I only need to use the
Normally in Struts 1.x, I'll write and in my
validation.xml, I would define the field to validate and the key to add
to be replaced for the {0} v
I could be wrong, but if you are using the s:text tag, you can specify
an s:param that will be used. I could be wrong, and hopefully someone
will correct me if I am but -
Mr. Smith
package.properties -
message.key=Hello {0}
The docs aren't real specific on it, but there is some information
In struts 1.x, a resource bundle can have:
errors.required={0} is required.
And the validation.xml files will have a param set to the token (key) to
be plugged in the {0} variable. Is there such a functionality in Struts 2?
I have been able to only print one resource bundle using the key
att
3 matches
Mail list logo