Aw: Re: Re: How to use ActionName-alias-validation.xml?
Ute Kaiser <[email protected]> Fri, 17 Oct 2025 08:34:16 +0000
| Newsgroups | gmane.comp.jakarta.struts.user |
|---|---|
| Message-ID | <trinity-e749f85b-f950-484d-b846-ee522a807167-1760690056381@trinity-msg-rest-webde-webde-live-df5b95767-d8rpf> |
What a surprising answer :-) I tried, it worked and the filename is 120 characters... Some remarks on this solution: - There is no documentation on this case with slashes in action names and the replacement "/" -> "-" resulting in "MyAction-a-b-myaction.validate-validation.xml" - For my example below I may implement validateCreate() = validateMethodName. (I stumbled on this here: https://stackoverflow.com/questions/6763652/struts-validator-annotation-to-call-method.) Maybe that is the reason why I experimented too long and in vain with MyAction-create-validation. There are many ways to validate, but sometimes confusing :-) Thx and best regards Ute