?? queryfightaction.java
字號(hào):
/**
*
*/
package com.air.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.air.backend.util.QueryFightUtil;
import com.air.form.FightForm;
import com.air.model.Fight;
/**
* @author jelly_yang
*
*/
public class QueryFightAction extends Action {
private static Log log = LogFactory.getLog(LoginAction.class);
public final ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception{
FightForm fightForm = (FightForm)form;
if( fightForm.getLeaveDate()!=null && fightForm.getLeaveDate()!=""){
List<Fight> fights = QueryFightUtil.getInstance().retrieveFight(fightForm);
request.setAttribute("fights", fights);
return mapping.findForward("success");
}
return mapping.findForward("failure");
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -