zoukankan      html  css  js  c++  java
  • StringUtils cannot be resolved

    I am using Java server pages and for using String Manipulations and i am Using StringUtils which i am not able compile.It says that "StringUtils cannot be resolved.". I am sorry to say that i added this to CLASSPATH, i have also put the jar file in the lib file of Apache tomcat... and in the lib file where my jsp files are located...

    Actually i am using Dreamweaver trial version and programmers notepad...?

    if i want to add a big import .. PLease tell me how to do so.. or do i have to compile the whole thing?

    Looks like the problem is not with the classpath but the import.

    Can you import the StringUtils in your jsp? Below should help

    <%@ page import="org.apache.commons.lang3.StringUtils" %>
    

    I dont see it as classpath issue, because if it was not able to locate the classes, it should have given you ClassNotFoundException. But yes, you need to have classpath set properly, which i think you have already taken care of.

  • 相关阅读:
    bzoj2004(矩阵快速幂,状压DP)
    bzoj1242(弦图判定)
    uva1659(最大费用循环流)
    bzoj1009
    bzoj2893(费用流)
    bzoj4873(最大权闭合子图)
    bzoj2879(动态加边费用流)
    51nod 1239 欧拉筛模板
    poj2774 sa模版
    洛谷3391文艺平衡树
  • 原文地址:https://www.cnblogs.com/telwanggs/p/5404926.html
Copyright © 2011-2022 走看看