From 6b795c9113181c80a28b0c8af57516ea5c9f6373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20V=C6=B0=C6=A1ng?= Date: Thu, 7 Dec 2023 02:14:44 +0700 Subject: [PATCH] Change ``checkout-success`` to ``checkout-status`` --- .../io/hardingadonis/miu/controller/web/CheckoutServlet.java | 2 +- ...CheckoutSuccessServlet.java => CheckoutStatusServlet.java} | 4 ++-- .../view/web/{checkout-success.jsp => checkout-status.jsp} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/main/java/io/hardingadonis/miu/controller/web/{CheckoutSuccessServlet.java => CheckoutStatusServlet.java} (84%) rename src/main/webapp/view/web/{checkout-success.jsp => checkout-status.jsp} (96%) diff --git a/src/main/java/io/hardingadonis/miu/controller/web/CheckoutServlet.java b/src/main/java/io/hardingadonis/miu/controller/web/CheckoutServlet.java index 4acece5c..ee77445e 100644 --- a/src/main/java/io/hardingadonis/miu/controller/web/CheckoutServlet.java +++ b/src/main/java/io/hardingadonis/miu/controller/web/CheckoutServlet.java @@ -59,7 +59,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response) session.setAttribute("cart_cookie", cartCookie); if (payment == Payment.COD) { - response.sendRedirect("checkout-success"); + response.sendRedirect("checkout-status"); } else { handleVNPayCheckout(request, response, (int) totalPrice); } diff --git a/src/main/java/io/hardingadonis/miu/controller/web/CheckoutSuccessServlet.java b/src/main/java/io/hardingadonis/miu/controller/web/CheckoutStatusServlet.java similarity index 84% rename from src/main/java/io/hardingadonis/miu/controller/web/CheckoutSuccessServlet.java rename to src/main/java/io/hardingadonis/miu/controller/web/CheckoutStatusServlet.java index aef891fc..7b75700a 100644 --- a/src/main/java/io/hardingadonis/miu/controller/web/CheckoutSuccessServlet.java +++ b/src/main/java/io/hardingadonis/miu/controller/web/CheckoutStatusServlet.java @@ -5,8 +5,8 @@ import javax.servlet.annotation.*; import javax.servlet.http.*; -@WebServlet(name = "CheckoutSuccessServlet", urlPatterns = {"/checkout-success"}) -public class CheckoutSuccessServlet extends HttpServlet { +@WebServlet(name = "CheckoutStatusServlet", urlPatterns = {"/checkout-status"}) +public class CheckoutStatusServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) diff --git a/src/main/webapp/view/web/checkout-success.jsp b/src/main/webapp/view/web/checkout-status.jsp similarity index 96% rename from src/main/webapp/view/web/checkout-success.jsp rename to src/main/webapp/view/web/checkout-status.jsp index 234d1b9c..cfba5f45 100644 --- a/src/main/webapp/view/web/checkout-success.jsp +++ b/src/main/webapp/view/web/checkout-status.jsp @@ -67,7 +67,7 @@

- Đến lịch sử mua hàng + Đến lịch sử mua hàng