execute是啥意思public class BookAddAction extends Action{ public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response)throws Exception {BookService service = new BookServiceImpl();ser

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 01:48:56
execute是啥意思public class BookAddAction extends Action{ public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response)throws Exception {BookService service = new BookServiceImpl();ser
xSmkP+}j!caCdNm0溗ι}X6p"EiRIMݨlL;徝#[%ڤjݥS|vC^*Uq`4hڌRCs_A@i7[_)Ow[%H\Z*u:u\ɱLáEm6(7Ujܖ3\W)8b mefU ;.Wlr]EZp>zG,

execute是啥意思public class BookAddAction extends Action{ public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response)throws Exception {BookService service = new BookServiceImpl();ser
execute是啥意思
public class BookAddAction extends Action{
public ActionForward execute(ActionMapping mapping,ActionForm form,
HttpServletRequest request,HttpServletResponse response)
throws Exception {
BookService service = new BookServiceImpl();
service.addBook((BookAddForm)form,request);
return mapping.findForward("main");
}
}帮忙给解释下上面的含义

execute是啥意思public class BookAddAction extends Action{ public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response)throws Exception {BookService service = new BookServiceImpl();ser
execute 是方法名
public class BookAddAction extends Action{ //类bookaction 从 action继承
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)//一个公共方法execute,返回类型为ActionForwar,包括了四个参数
throws Exception {//抛出异常
BookService service = new BookServiceImpl();//创建BOOKSERVICE 类型的对象引用
service.addBook((BookAddForm)form, request);//调用addbook方法,将其中的一个参数强制转换为bookaddform类型
return mapping.findForward("main");
}
}