①:http://localhost:8080/PractiseStruts/loginAction!login.action;
②:http://localhost:8080/PractiseStruts/loginAction.action?method:login=xxx;
③:struts2的配置文件的action标签中存在一个method属性,用来指定访问特定的方法
<action name="login*" class="LoginAction" method="login">
④:<action name="Login_*" class="LoginAction" method="{1}">
这样在页面中的action路径可写为Login_CheckLogin.action就是访问say方法了;
⑤:若struts2交给spring容器管理。怎可以通过注解方式找到action以及对应的action中方法
@SuppressWarnings("unchecked")
@Action(value = "/admin/editproduct", results = { @Result(name = "update", location = "jsp/login.jsp") })
public String CheckLogin() throws Exception {
。。。。。。。
}