package com.google.sps.servlets;

import com.google.appengine.api.blobstore.BlobInfo;
import com.google.appengine.api.blobstore.BlobInfoFactory;
import com.google.appengine.api.blobstore.BlobKey;
import com.google.appengine.api.blobstore.BlobstoreService;
import com.google.appengine.api.blobstore.BlobstoreServiceFactory;
import com.google.appengine.api.images.ImagesService;
import com.google.appengine.api.images.ImagesServiceFactory;
import com.google.appengine.api.images.ServingUrlOptions;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.Entity;
import java.io.File;
import java.io.IOException;
import java.util.*;
import java.net.MalformedURLException;
import java.net.URL;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/** Servlet responsible for creating new recipes. */
@WebServlet("/new-recipe")
public class NewRecipeServlet extends HttpServlet {

  @Override
  public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
    // implement new recipe

    response.sendRedirect("/pages/UserPage.html");
  }

}
@@ -344,37 +344,43 @@
 pengine.api.
-images.Images
+datastore.Datastore
 Service;%0Aimp
@@ -412,21 +412,27 @@
 api.
-images.Images
+datastore.Datastore
 Serv
@@ -479,32 +479,24 @@
 api.
-images.ServingUrlOptions
+datastore.Entity
 ;%0Aim
@@ -525,35 +525,29 @@
 ine.api.
-datastore.Datastore
+images.Images
 Service;
@@ -579,35 +579,29 @@
 ine.api.
-datastore.Datastore
+images.Images
 ServiceF
@@ -640,32 +640,40 @@
 ine.api.
-datastore.Entity
+images.ServingUrlOptions
 ;%0Aimport
@@ -719,28 +719,8 @@
 on;%0A
-import java.util.*;%0A
 impo
@@ -775,16 +775,36 @@
 et.URL;%0A
+import java.util.*;%0A
 import j
@@ -1303,8 +1303,9 @@
 ;%0A  %7D%0A%0A%7D
+%0A

Update NewRecipeServlet.java