public void insert() {
		String dish_name,user_id,user_password;
		int restaurant_id;
		try {
			dish_name = request.getParameter("dish_name").trim();
			user_id = request.getParameter("user_id").trim();
			user_password = request.getParameter("user_password").trim();
			restaurant_id = Integer.valueOf(request.getParameter("restaurant_id").trim());
		} catch (Exception e) {
			jsonObject.put("RC", RC.PARAMETER_ERROR);
			return;
		}

		RestaurantInfo restaurantInfo;
		try {
			restaurantInfo = new RestaurantInfoDao().getById(restaurant_id);
		} catch (Exception e) {
			jsonObject.put("RC", RC.SQL_EXCEPTION);
			return;
		}
		if (restaurantInfo == null) {
			jsonObject.put("OC", OC.UNKNOWN_RESTAURANT_ID);
			return;
		}

		UserInfo userInfo;
		try {
			userInfo = new UserInfoDao().getById(user_id);
		} catch (Exception e) {
			jsonObject.put("RC", RC.SQL_EXCEPTION);
			return;
		}
		if (userInfo == null) {
			jsonObject.put("OC", OC.UNKNOWN_USER_ID);
			return;
		} else if (!userInfo.getUser_password().equals(user_password)) {
			jsonObject.put("OC", OC.WRONG_PASSWORD);
			return;
		}else if (userInfo.getUser_type().equals("customer")) {
			jsonObject.put("OC", OC.INSUFFICIENT_PRIVILEGES);
			return;
		}

		DishInfo dishInfo = new DishInfo();
		dishInfo.setDish_name(dish_name);
		dishInfo.setRestaurant_id(restaurant_id);
		dishInfo.setRestaurant_name(restaurantInfo.getRestaurant_name());
		dishInfo.setUser_id(user_id);
		try {
			dishInfo.setDish_price(Double.valueOf(request.getParameter("dish_price").trim()));
		} catch (Exception e) {
			dishInfo.setDish_price(0);
		}

		try {
			jsonObject.put("OC", new DishInfoDao().Insert(dishInfo));
		} catch (Exception e) {
			jsonObject.put("RC", RC.SQL_EXCEPTION);
			return;
		}
	}