From 5525ba284d3942adfe73df4019b07fe1d02d9b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20V=C6=B0=C6=A1ng?= Date: Mon, 22 Jan 2024 23:09:02 +0700 Subject: [PATCH] Update Dashboard Servlet --- .../others/dashboard/DashboardServlet.java | 6 + src/main/webapp/view/common/_sidenav.jsp | 14 +- .../view/jsp/others/dashboard/dashboard.jsp | 124 ++++++++++++++++++ 3 files changed, 137 insertions(+), 7 deletions(-) diff --git a/src/main/java/io/hardingadonis/saledock/controller/others/dashboard/DashboardServlet.java b/src/main/java/io/hardingadonis/saledock/controller/others/dashboard/DashboardServlet.java index 9d5af57..55ad8c6 100644 --- a/src/main/java/io/hardingadonis/saledock/controller/others/dashboard/DashboardServlet.java +++ b/src/main/java/io/hardingadonis/saledock/controller/others/dashboard/DashboardServlet.java @@ -11,6 +11,12 @@ public class DashboardServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + request.setCharacterEncoding("UTF-8"); + response.setContentType("text/html; charset=UTF-8"); + + request.setAttribute("page", "dashboard"); + + request.getRequestDispatcher("/view/jsp/others/dashboard/dashboard.jsp").forward(request, response); } @Override diff --git a/src/main/webapp/view/common/_sidenav.jsp b/src/main/webapp/view/common/_sidenav.jsp index 1498390..e524bae 100644 --- a/src/main/webapp/view/common/_sidenav.jsp +++ b/src/main/webapp/view/common/_sidenav.jsp @@ -13,30 +13,30 @@