package com.google.sps.servlets;

import com.google.sps.servlets.ServletUtils;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import javax.servlet.ServletException;

@WebServlet(
    urlPatterns = {
      "/homePage",
      "/MyFolders",
      "/CreateCard",
      "/CreateFolder",
      "/ImageInterface",
      "/YoutubeInterface",
      "/InsideFolder"
    })
public class ReactServlet2 extends HttpServlet {
  public void doGet(HttpServletRequest request, HttpServletResponse response)
      throws IOException, ServletException {
    request.setAttribute("TITLE", "Frame.cards");
    ServletUtils.RenderReact("mainApp", request, response);
  }
}

@@ -542,9 +542,8 @@
 vlet
-2
  ext
@@ -561,16 +561,16 @@
 rvlet %7B%0A
+
   public
@@ -639,16 +639,16 @@
 sponse)%0A
-
       th
@@ -684,16 +684,223 @@
 ption %7B%0A
+    String servletPath = request.getServletPath();%0A    if(servletPath.equals(%22/homePage%22)) %7B%0A      request.setAttribute(%22TITLE%22, %22Home%22);%0A      ServletUtils.RenderReact(%22homePage%22, request, response);%0A    %7D%0A
     requ

Fix bug in ReactServlet