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
Please help
SCJP 1.4
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35256
7
posted
0
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.