package wasdev.sample.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class SimpleServlet
 */
@WebServlet("/SimpleServlet")
public class SimpleServlet extends HttpServlet {
    private static final long serialVersionUID = 1L;

    /**
     * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
     */
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html");
        response.getWriter().print("Hello World!");
    }

}

@@ -696,32 +696,35 @@
 eption %7B%0A       
+ //
  response.setCon
@@ -753,16 +753,19 @@
 %0A       
+ //
  respons
@@ -797,21 +797,797 @@
 o World!%22);%0A
+        %0A         try%7B%0A         // just the name of the parameter in the URL    %0A%09   %09 String fileUrl = request.getParameter(%22fileUrl%22);%0A         URL url = new URL(fileUrl);%0A             %0A%09     response.getWriter().println(%22my file is: %22 + url.getName());%0A             %0A         // Create a temp file     %0A%09     File tmp = File.createTempFile(%22myTmp%22, %22.csv%22);%0A%09     tmp.deleteOnExit();     %09 %0A%09     IOUtils.copy(url.openStream(), new FileOutputStream(tmp));%0A%09 %0A%09     %0A%09 %0A%09     response.setContentType(%22application/json%22);%0A%09     response.getWriter().write(%22Stefy%22);%0A%0A%09   %7Dcatch(Exception e)%7B%0A%09     response.setContentType(%22text/html%22);%09    %09    %0A        response.getWriter().println(%22Hello no good parameter!%22);%0A        e.printStackTrace(response.getWriter());%0A        %0A%09   %7D%0A
     %7D%0A%0A%7D%0A

Update SimpleServlet.java