If there is method="{number}", corresponding, the action config should have * in its name,
Example:
<action name="user_*" class="UserAction" method="{1}">
and in its corresponding jsp if has a form :
In that way, structs will let the user_userLogin action according to the user_*’s format analysis, and take out the * according the number 1, 2, 3 …, 1 means the first *.
If the action config like this:
<action name="user_*_*" class="com.xyz.{1}Action" method="{2}">
and the jsp form is like this:
<form action="user_Login_userLogin" method="post">
Its action will become like this:
class="com.xyz.Login" method="{userLogin}"