public String execute() throws ClassNotFoundException, SQLException {
		
		SalesOrderManager som = new SalesOrderManager();
		SalesOrder so =new SalesOrder();
		ActionContext context = ActionContext.getContext();		// 取出当前action的上下文
		HttpServletRequest request = (HttpServletRequest) context.get(ServletActionContext.HTTP_REQUEST);	// 取出request和response
		HttpServletResponse response = (HttpServletResponse) context.get(ServletActionContext.HTTP_RESPONSE);
		Map session = context.getSession();
		HttpSession se = request.getSession();
		
		String[] tickets = request.getParameter("args").split(",");
		String soIdcard = request.getParameter("soIdcard");
		int carriageNumber = 1;
		int seatNumber = 4;
		so.setIdCard(soIdcard);
		int ticketNumber = 20000003;
		for (int i = 0; i < tickets.length; i += 2) {
			Ticket ticket = EntityCreator.create(
					StationEnum.valueOf(tickets[i]), carriageNumber,
					seatNumber, tickets[i+1], "HardSeat", true);
			ticket.setId(ticketNumber);
			ticketNumber++;
			seatNumber++;
			so.bookTicket(ticket);
		}
		
		if(!SalesOrderManager.insertSalesOrder(so))
			return "FAILD";
		
//		try {
//			request.getRequestDispatcher("/queryOrder.jsp").forward(request, response);
//		} catch (ServletException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		} catch (IOException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
		return "SUCCESS";
		
	}