I am developing a simple web searching engine and I am new to jsp and java development
I use eventually I want to use two java classes:Searcher and Page in my jsp file. For the stucture of the repository,to make it simple , I put them all in a single file and without any hierarchy.
And then I add these at the top:
<%@ page import="java.util.ArrayList, java.util.List" %>
<%@ page import="Searcher,Page" %>
But the jsp can not compile the file and gives errors :
An error occurred at line: [9] in the jsp file: [/src/main/java/search.jsp]
Page cannot be resolved to a type
An error occurred at line: [14] in the jsp file: [/src/main/java/search.jsp]
Searcher cannot be resolved to a type
may I have any clue to fix this error?
FYR: I am using the Tomcat to build the sever and test the jsp
Zhongli Chung is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.