@@ -0,0 +1,1501 @@
+package com.google.sps.servlets;%0A%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport java.io.IOException;%0Aimport java.util.Map;%0Aimport java.util.HashMap;%0Aimport com.github.mustachejava.Mustache;%0Aimport com.github.mustachejava.MustacheFactory;%0Aimport com.github.mustachejava.DefaultMustacheFactory;%0Aimport com.google.gson.Gson;%0Aimport com.google.sps.data.UrlRequest;%0A%0A/** Servlet that shows projects.*/%0A@WebServlet(%22/project%22)%0Apublic class ProjectServlet extends HttpServlet %7B%0A%0A  private static final String API_KEY = %22API_KEY%22;  // Insert the API_KEY here for testing.%0A  private static final String API_PATH = %22https://api.globalgiving.org/api/public/projectservice/projects/%25s%22;%0A%0A  @Override%0A  public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException %7B%0A    Map%3CString, String%3E queryParameters = new HashMap%3C%3E();%0A    queryParameters.put(%22api_key%22, API_KEY);%0A    String idString = request.getParameter(%22id%22);%0A    String path = String.format(API_PATH, idString);%0A    String jsonString = UrlRequest.urlQuery(path, queryParameters);%0A%0A    Gson gson = new Gson();%0A    Map jsonMap = gson.fromJson(jsonString, Map.class);%0A%0A    MustacheFactory mf = new DefaultMustacheFactory();%0A    Mustache mustache = mf.compile(%22project.html%22);%0A    response.setContentType(%22text/html;%22);%0A    mustache.execute(response.getWriter(), jsonMap).flush();%0A  %7D%0A%7D

Add servlet to serve html file with specific project information