I am new to Java and learning to work with JSP. I created a class inside student package, when I import it code worked successfully. But when I omitted the package and place the class "Student" directly in WEB-INF/classes folder, I got an error saying
Student cannot be resolved to a type.
I searched alot but did not find any reasonable answer. However, I solved the problem by putting this class inside package, but want to know that is this necessary that class should exist inside package. Thank You