protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		String movie=request.getParameter("movie");
		Integer price=250;
		String date=request.getParameter("testinput");
		String slot=request.getParameter("group1");
		Integer no=Integer.parseInt(request.getParameter("person"));
		InsertMovieTable mm=new InsertMovieTable();
		boolean status=mm.checkMovie(movie);
		HttpSession session=request.getSession();
		String username=(String)session.getAttribute("username");
		if(status==true)
		{
			ModelTicket mt=new ModelTicket();
			int ticket=mt.insertTicket(price,username,date,slot,no,movie);
			if(ticket!=0)
			{
			request.setAttribute("msgmovie", "yes");
			request.setAttribute("ticket", ""+ticket);
			RequestDispatcher dispatcher = 
				  getServletContext().getRequestDispatcher("/bookticket.jsp");
				dispatcher.forward(request, response);
			}
			else
			{
				request.setAttribute("msgmovie", "The movie doesn't exist");
				RequestDispatcher dispatcher = 
					  getServletContext().getRequestDispatcher("/bookticket.jsp");
					dispatcher.forward(request, response);
			}
		}
		else
		{
			request.setAttribute("msgmovie", "The movie doesn't exist");
			RequestDispatcher dispatcher = 
				  getServletContext().getRequestDispatcher("/bookticket.jsp");
				dispatcher.forward(request, response);
		}
		}