From c3bc4e4ff30ebf58ad6c62ac271a46537c4edc88 Mon Sep 17 00:00:00 2001 From: conikeec Date: Mon, 12 Aug 2024 20:11:57 -0700 Subject: [PATCH] w1 --- pom.xml | 2 ++ src/main/java/io/shiftleft/tarpit/OrderStatus.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index c4343e0..f47fed4 100644 --- a/pom.xml +++ b/pom.xml @@ -86,6 +86,8 @@ UTF-8 1.8 1.5.6 + 1.8 + 1.8 servlettarpit diff --git a/src/main/java/io/shiftleft/tarpit/OrderStatus.java b/src/main/java/io/shiftleft/tarpit/OrderStatus.java index b749e54..3bd9e09 100644 --- a/src/main/java/io/shiftleft/tarpit/OrderStatus.java +++ b/src/main/java/io/shiftleft/tarpit/OrderStatus.java @@ -20,7 +20,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -@WebServlet(name = "simpleServlet", urlPatterns = {"/getOrderStatus"}, loadOnStartup = 1) +@WebServlet(name = "simpleServlet", urlPatterns = { "/getOrderStatus" }, loadOnStartup = 1) public class OrderStatus extends HttpServlet { private static final long serialVersionUID = -3462096228274971485L; @@ -81,6 +81,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) request.setAttribute("orderDetails", order); LOGGER.info("Order details are " + order); + LOGGER.info("Order " + orderId + " details are forwarded to dashboard "); getServletContext().getRequestDispatcher("/dashboard.jsp").forward(request, response); @@ -102,7 +103,6 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) throw new ServletException(e); } - } private void getConnection() throws ClassNotFoundException, SQLException {