📄 sumaction.java
字号:
package com.action;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import com.dao.MonthDao;
public class SumAction extends Action {
private MonthDao dao = null;
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
this.dao = new MonthDao();
int year = Integer.parseInt(request.getParameter("year")); //从JSP页面中得到年数,同时进行转型
dao.draw(year,response);
return mapping.findForward("sumAction");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -