Jsp program not resolving StringUtils.isNumeric()
by mfoley from LinuxQuestions.org on (#5BQKG)
What am I doing wrong? I have:
Code:<%@ page import="org.apache.commons.lang3.StringUtils.*" %>
:
if (!StringUtils.isNumeric(ma[1])) ma[1] = 0;The class definition https://commons.apache.org/proper/co....CharSequence- requires org.apache.commons.lang3.StringUtils, which I've included.
I've downloaded commons-lang3-3.11.jar from https://commons.apache.org/proper/co...nload_lang.cgi. I've put that in $CATALINA_HOME/lib and added it to my CLASSPATH in /etc/profile.d/tomcat.sh. I've restarted tomcat (version 8.5.11). But I get:
Code:An error occurred at line: 538 in the jsp file: /updateWeb.jsp
StringUtils cannot be resolved


Code:<%@ page import="org.apache.commons.lang3.StringUtils.*" %>
:
if (!StringUtils.isNumeric(ma[1])) ma[1] = 0;The class definition https://commons.apache.org/proper/co....CharSequence- requires org.apache.commons.lang3.StringUtils, which I've included.
I've downloaded commons-lang3-3.11.jar from https://commons.apache.org/proper/co...nload_lang.cgi. I've put that in $CATALINA_HOME/lib and added it to my CLASSPATH in /etc/profile.d/tomcat.sh. I've restarted tomcat (version 8.5.11). But I get:
Code:An error occurred at line: 538 in the jsp file: /updateWeb.jsp
StringUtils cannot be resolved