67,515
社区成员
发帖
与我相关
我的任务
分享
<global-exceptions >
<exception
key="general"
path="/error.jsp"
type="java.lang.Exception" />
</global-exceptions>
<global-forwards >
<forward name="lastpage" path="/forward.jsp" redirect="true" />
</global-forwards>
public ActionForward login(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
{
...
}
String method = request.getParameter("method");
if ("login.equals(method)) {
// 用户登录验证
return this.validate_0(mapping, request);
} else {
// action中没有一个方法与之对应
return this.validate_1(mapping, request);
}