Hi,
I have a problem with a validation that should only be activated for method 
create in my Action.

I do not understand how to use this "Action Alias" in the documentation:
>>
https://struts.apache.org/core-developers/validation.html
Validation rules can be specified:
1.Per Action class: in a file named ActionName-validation.xml
2. Per Action alias: in a file named ActionName-alias-validation.xml
In this context, “Action Alias” refers to the action name as given in the 
Struts configuration. Often, the name attribute matches the method name, but 
they may also differ.
<<

I had some success with option one "ActionName-validation.xml" by creating 
X-validation.xml (X=Name of the java action class)
But I am lost trying the second option. X-create-validation.xml is ignored, 
X-validate-validation.xml is ignored.

It would be so nice if someone could just add the file name for the following 
example:

Migrating from Struts1 to Struts7, I have complex action names with slashes.
                <action name="a/b/myaction.validate"
                        class="myPath.MyAction"
                        method="create">
                        <result name="input" type="tiles">mytiles</result>
                        <result name="success" type="tiles">mytiles</result>
                </action>
Best regards
Ute


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to