📄 getflight_schedulebydestinationaction.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.GetFlight_ScheduleByDestinationForm;import facade.Facade;/** * MyEclipse Struts * Creation date: 05-01-2006 * * XDoclet definition: * @struts.action path="/getFlight_ScheduleByDestination" name="getFlight_ScheduleByDestinationForm" input="/form/getFlight_ScheduleByDestination.jsp" scope="request" validate="true" */public class GetFlight_ScheduleByDestinationAction 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 { GetFlight_ScheduleByDestinationForm getFlight_ScheduleByDestinationForm = (GetFlight_ScheduleByDestinationForm) form; String temp=request.getParameter("dest"); String Destination=new String(temp.getBytes("ISO-8859-1"),"GB2312"); System.out.println("________________________________"); System.out.println(Destination); System.out.println("________________________________"); Facade f=new Facade(); //String str="上海"; List l=f.getFlightScheduleByDestination(Destination); request.getSession().setAttribute("AllFlightSchedule",l); return mapping.findForward("getflight_schedulebydestination"); } catch(Exception e) { request.getSession().setAttribute("error",e.getMessage()); return mapping.findForward("error"); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -