...
If there is no
execute
method, and no other method, specified in the configuration, the framework will throw an exception.
Excerpt | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Wildcard MethodMany times, a set of action mappings will share a common pattern. For example, all your Rather than code a separate mapping for each action class that uses this pattern, you can write it once as a wildcard mapping.
Here, a reference to "editCrud" will call the Another common approach is to postfix the method name and set it off with an exclamation point (aka "bang"), underscore, or other special character.
To use a postfix wildcard, just move the asterisk and add an underscore.
From the framework's perspective, a wildcard mapping creates a new "virtual" mapping with all the same attributes as a conventional, static mapping. As a result, you can use the expanded wildcard name as the name of validation, type conversion, and localization files, just as if it were an Action name (which it is!).
|
ActionSupport Default
If the class attribute in an action mapping is left blank, the com.opensymphony.xwork.ActionSupport
class is used as a default.
...