查找不到类 jsp

描述:本地没问题,放到服务器上就有问题了

<%@ page import="com.ruixin.be.manager.impl.NCManager,org.jdom.*,org.jdom.input.*,org.xml.sax.InputSource" %>

截图

4080050867-553755d7f3715_articlex

报错

NCManager cannot be resolved to a type
SAXBuilder cannot be resolved to a type
An error occurred at line: 152 in the jsp file: /文件夹/文件.jsp
Document cannot be resolved to a type

An error occurred at line: 146 in the jsp file: /文件夹/文件.jsp
SAXBuilder cannot be resolved to a type
143: //鍒涘缓鏂扮殑杈撳叆婧怱AX 瑙f瀽鍣ㄥ皢浣跨敤 InputSource 瀵硅薄鏉ョ‘瀹氬浣曡鍙? XML 杈撳叆
144: InputSource source = new InputSource(read);
145: //鍒涘缓涓?涓柊鐨凷AXBuilder
146: SAXBuilder sb = new SAXBuilder();
147:
148: try {
149:

An error occurred at line: 151 in the jsp file: /文件夹/文件.jsp
Document cannot be resolved to a type
148: try {
149:
150: //閫氳繃杈撳叆婧愭瀯閫犱竴涓狣ocument
151: Document doc = sb.build(source);
152: //鍙栫殑鏍瑰厓绱?
153: Element root = doc.getRootElement();
154:
阅读 2.8k
1 个回答

最后是重新写了一个新的jsp,不再原来的这个jsp里面进行调试了,结果好用了,这个是否也提醒我们不要怕麻烦,重新来过可能比在当前找错更豁然开朗

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进