Roberto Nunnari wrote:


2) action names with wildcards and '!' (ie '*!*') are not usable for declarative action-alias validation. No idea why.

This works:

<action name="manageAccount!*" method="do{1}" class="package.ManageAccountAction">

matches the XML validation:
ManageAccountAction-manageAccount!ChangePassword-validation.xml

where doChangePassword is the name of the method to be invoked in ManageAccountAction

The following setting is important as the ! is just a separator char (nothing special) # disable the old (bang) XWorks2 notation of dynamic invocation of actions. Wildcards are still permitted
struts.enable.DynamicMethodInvocation = false

My advice is not to use this feature of Struts2 and instead keep it simple (follow the convention of the Convention plugin, even if not in use yet).

regards,
Jeromy Evans.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to