📄 getallflight_schedulebyflightnoaction.java
字号:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_4.0.1/xslt/JavaClass.xslpackage com.yuanlf.struts.action;import java.util.List;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;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.yuanlf.struts.form.GetAllFlight_ScheduleByFlightnoForm;import com.yuanlf.struts.form.GetFlight_ScheduleByDestinationForm;import facade.Facade;/** * MyEclipse Struts * Creation date: 05-03-2006 * * XDoclet definition: * @struts.action path="/getAllFlight_ScheduleByFlightno" name="getAllFlight_ScheduleByFlightnoForm" input="/form/getAllFlight_ScheduleByFlightno.jsp" scope="request" validate="true" */public class GetAllFlight_ScheduleByFlightnoAction extends Action { // --------------------------------------------------------- Instance Variables // --------------------------------------------------------- Methods /** * Method execute * @param mapping * @param form * @param request * @param response * @return ActionForward */ public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { try { GetAllFlight_ScheduleByFlightnoForm getAllFlight_ScheduleByFlightnoForm = (GetAllFlight_ScheduleByFlightnoForm) form; String flightno=request.getParameter("flightno"); //String Destination=new String(temp.getBytes("ISO-8859-1"),"GB2312"); System.out.println("________________________________"); System.out.println(flightno); System.out.println("________________________________"); Facade f=new Facade(); List l=f.getFlightScheduleByFlightno(flightno); List l1=f.getAllFlightSchedule(); request.getSession().setAttribute("GetFlightScheduleByFlightno",l); request.getSession().setAttribute("AllFlightSchedule",l1); return mapping.findForward("getallflight_schedulebyflightno"); } catch(Exception e) { request.getSession().setAttribute("error",e.getMessage()); return mapping.findForward("error"); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -