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.

转载于:https://www.cnblogs.com/telwanggs/p/5404926.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值