I want to access ordinary java files in my jsp code. access in the sense i want to create an object like ClassA obj=new ClassA(); My problem is where should i put that ClassA.class file in my webapps folder?
i have put that class file inside my WEB-INF/classes folder but still when i try to run my jsp file i get error as ClassA cannot be resolved to a type
Joined: Mar 22, 2005
Does the JSP have the proper import statement, i.e.
<%@ page import="package.ClassA" %>
Note that I prepended a package name, because classes can't be in the default package to be used like this.