在JSP中无法解析类型 [英] Type can not be resolved in JSP

查看:265
本文介绍了在JSP中无法解析类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在执行.jsp文件时遇到此错误.

我正在尝试导入WEB-INF/classes文件夹中存在的DBHandler类

错误是:
DBHandler cannot be resolved to a type


帮助我

Hello I am getting this error while executing the .jsp file.

I am trying to import DBHandler class which is present in WEB-INF/classes folder

The error is :
DBHandler cannot be resolved to a type


Help me out

推荐答案

您是否在JSP中放置了导入语句?
像这样的东西:
<%@ page import="the.Package.Your.DBHanlder.is.in;" %>

干杯,

曼弗雷德(Manfred)
Did you place an import statement in your JSP?
Something like:
<%@ page import="the.Package.Your.DBHanlder.is.in;" %>

Cheers,

Manfred


这篇关于在JSP中无法解析类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆