?? scoreaction.java
字號(hào):
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.accp.struts.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import com.accp.dao.StuScoreDao;
import com.accp.struts.form.ScoreForm;
/**
* MyEclipse Struts
* Creation date: 08-01-2008
*
* XDoclet definition:
* @struts.action path="scoreAction" name="scoreForm" parameter="method" scope="request" validate="true"
*/
public class ScoreAction extends DispatchAction {
/*
* Generated Methods
*/
private StuScoreDao stuScoreDao = new StuScoreDao();
/**
* Method execute
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
*/
public ActionForward findScoreByStuId(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
String stuid = request.getParameter("stuId");
List scoreList = stuScoreDao.getStuScoreByStuId(Long.parseLong(stuid));
request.setAttribute("scoreList", scoreList);
return mapping.findForward("ok");
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -