Parameterizing i18n messages
----------------------------

                 Key: WW-2294
                 URL: https://issues.apache.org/struts/browse/WW-2294
             Project: Struts 2
          Issue Type: New Feature
            Reporter: Volker Krebs


The struts2 validator should be able to parameterize i18n Messages.
<field name="webuser.login">
  <field-validator type="requiredstring">
    <param name="0" key="field.name"/>
    <message key="errors.required"/>
  </field-validator>
</field>

The message properties would be as follows:
errors.required={0} is required
field.name=Login 

See also:
http://forums.opensymphony.com/thread.jspa?threadID=109693&tstart=0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to