Hello Every one i have one jsp page which is located at webapps/ROOT and one java file which is in WEB-INF/classes. i have compiled my java file and get .class file also. now i want to import my class file into jsp page. for this purpose i have create one folder "mypackage" and put my both (class and java) files in it.after this i have try to import into jsp file. for that i have write following code. and mypackage is in WEB-INF/classes folder.
<%@ page import="mypackage.Ps123" %>
here ps123 is my class name. and when i following code
Ps123 p = new Ps123();
i got error
Only a type can be imported.mypackage.ps123 resolves to a package
ps123 cannot be resolved to a type
Tell me whats wrong with this code. if i dont import java class in jsp file . it works fine.