From 583d399c243a5665cb23a4770d4526533c472664 Mon Sep 17 00:00:00 2001
From: JCgH4164838Gh792C124B5
<43964333+JCgH4164838Gh792C124B5@users.noreply.github.com>
Date: Mon, 27 Dec 2021 21:23:35 -0500
Subject: [PATCH] Update: - Fix REST Showcase JSP issue for s:link tags that
replaced HTML link tags. - s:link tags cannot use JSP EL in them. Modified
JSPs to use scriptlet, JSP expression, and OGNL expression to work with
s:link tag.
---
.../main/webapp/WEB-INF/content/orders-deleteConfirm.jsp | 6 ++++--
.../src/main/webapp/WEB-INF/content/orders-edit.jsp | 6 ++++--
.../src/main/webapp/WEB-INF/content/orders-editNew.jsp | 7 +++++--
.../src/main/webapp/WEB-INF/content/orders-index.jsp | 6 ++++--
.../src/main/webapp/WEB-INF/content/orders-show.jsp | 6 ++++--
5 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-deleteConfirm.jsp b/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-deleteConfirm.jsp
index 03a017cb2..11d02a344 100644
--- a/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-deleteConfirm.jsp
+++ b/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-deleteConfirm.jsp
@@ -27,8 +27,10 @@
Orders
-
-
+
+ <%=((HttpServletRequest)request).getContextPath()%>
+
+
diff --git a/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-edit.jsp b/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-edit.jsp
index 48ca6f0a4..f2376412f 100644
--- a/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-edit.jsp
+++ b/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-edit.jsp
@@ -27,8 +27,10 @@
Orders
-
-
+
+ <%=((HttpServletRequest)request).getContextPath()%>
+
+
diff --git a/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-editNew.jsp b/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-editNew.jsp
index 74da515b4..2951e5a19 100644
--- a/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-editNew.jsp
+++ b/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-editNew.jsp
@@ -27,8 +27,11 @@
Orders
-
-
+
+ <%=((HttpServletRequest)request).getContextPath()%>
+
+
+
+ <%=((HttpServletRequest)request).getContextPath()%>
+
+
diff --git a/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-show.jsp b/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-show.jsp
index 0c8ceb872..03153ff55 100644
--- a/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-show.jsp
+++ b/apps/rest-showcase/src/main/webapp/WEB-INF/content/orders-show.jsp
@@ -27,8 +27,10 @@
Orders
-
-
+
+ <%=((HttpServletRequest)request).getContextPath()%>
+
+