From 5f43a41334015bffc89603b98242dbda8246492c Mon Sep 17 00:00:00 2001 From: Sailesh <126142666+Sailesh3000@users.noreply.github.com> Date: Sun, 31 Mar 2024 23:47:46 +0530 Subject: [PATCH] Update index.jsp --- WebContent/index.jsp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebContent/index.jsp b/WebContent/index.jsp index cb47f53b..2cc1dda6 100644 --- a/WebContent/index.jsp +++ b/WebContent/index.jsp @@ -38,6 +38,7 @@ String type = request.getParameter("type"); String message = "All Products"; if (search != null) { + search = search.replaceAll("<", "<").replaceAll(">", ">"); products = prodDao.searchAllProducts(search); message = "Showing Results for '" + search + "'"; } else if (type != null) { @@ -122,4 +123,4 @@ <%@ include file="footer.html"%> - \ No newline at end of file +