fix org.apache.commons.lang.StringEscapeUtils cannot be resolved to a type

(cherry picked from commit 2f2f76f785)
This commit is contained in:
charlie-aws 2021-04-07 17:27:16 -07:00 committed by jbonofre
parent 89ef3e8313
commit 64740b617f
2 changed files with 3 additions and 3 deletions

View File

@ -17,8 +17,8 @@
<%@ attribute name="text" type="java.lang.String" required="true" %>
<%@ attribute name="length" type="java.lang.Integer" required="false" %>
<%
text = org.apache.commons.lang.StringEscapeUtils.escapeHtml(text);
text = org.apache.commons.lang.StringEscapeUtils.escapeJavaScript(text);
text = org.apache.commons.lang3.StringEscapeUtils.escapeHtml4(text);
text = org.apache.commons.lang3.StringEscapeUtils.escapeEcmaScript(text);
if (length == null || length < 20)
length = 20;
if (text.length() <= length) {

View File

@ -24,7 +24,7 @@
if (value == null) {
value = "";
}
value = org.apache.commons.lang.StringEscapeUtils.escapeHtml(value);
value = org.apache.commons.lang3.StringEscapeUtils.escapeHtml4(value);
%>
<input type="text" name="${name}" value="<%= value %>"/>