Apache Struts 2 Documentation > Home > FAQs > How do I use messages from within the validator |

Apache Struts 2 Documentation
How do I use messages from within the validator
Edit Page Browse Space Add Page Add News
Added by digi9ten, last edited by Ted Husted on Jul 22, 2006 (view change) show comment hide comment
Comment:
Update parent page
View page history

    <validators>
        <field name="name">
            <field-validator type="requiredstring">
                <message key="template.name.errors.required">A default message in case the key is not found</message>
            </field-validator>
        </field>
    </validators>