The action code:
@ParentPackage("basePackage")
@Namespace("/")
@Action(value = "userAction")
@AllowedMethods("test")
public class UserAction {
private static final String[] test = null;
private static Logger logger = Logger.getLogger(UserAction.class);
public void test() {
logger.info("进入action");
}
}
In the struts.xml
configuration file:
<constant name="struts.strictMethodInvocation.methodRegex" value="([a-zA-Z]*)"/>
I want to visit
http://localhost:8080/sshe/userAction!Test.action
Now the error:
HTTP Status 404 - There is no Action mapped for namespace and action name [/] [userAction test] associated with context path [/sshe].
I wonder if there is any place to set up. How can I access this address?