public class LoginAction extends ActionSupport{
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
return mapping.findForward("success");
}
}
这段代码 execute 中的 属性都是做什么的 本人初学者请大神指点
ActionMapping 主要是action跳转用的
ActionForm 从页面获取参数或者后台设置参数到页面
HttpServletRequest http请求对象,可以通过它获取页面对象
HttpServletResponse http应答对象,可以通过它应答页面请求