Solve the cannot be resolved to a type error that occurs when jsp references other projects, cannotresolved
When referencing other projects on the JSP page, write the following code on the jsp page:
<% List <CandleEntity> candleEntities; CandleOperate candleOperate = new CandleOperate (DataBaseEntity. getInstance (); %>
Although a reference is added
<% @ Page import = "com. sjzh. xtrader. library. dao. dataBaseEntity "%> <% @ page import =" com. sjzh. xtrader. library. dao. candleOperate "%> <% @ page import =" com. sjzh. xtrader. library. entity. * "%> <% @ page import =" java. util. * "%> <% @ page language =" java "contentType =" text/html; charset = UTF-8 "pageEncoding =" UTF-8 "%>
But still cannot be identifiedCom. sjzh. xtrader. library. dao. DataBaseEntity.
Error: cannot be resolved to a type.
The solution is as follows:
Add the project you referenced here.