StringUtils cannot be resolved

Source: Internet
Author: User
Tags apache tomcat programmers notepad

I am using Java Server Pages and for using the String manipulations and I am using stringutils which I am not able compile. It says that "StringUtils cannot is resolved." I am sorry to say which I added this to CLASSPATH, I had 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 does so. Or do I had to compile the whole thing?

Looks like the problem are 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 is not able to locate the classes, it should has given you classnotfound Exception. But yes, you need to has classpath set properly, which I think you has already taken care of.

StringUtils cannot be resolved

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.