How to reference another Java class from JSP?
I have some code in databaseAccess.java file and I want to reference it by calling it from a jsp file.
In my jsp file, I have:
databaseAccess db = new databaseAccess();
But it gives me a HTTP 500 error report. It says: cannot find symbol
symbol : class databaseAccess
Do I need to "reference" the databaseAccess.java in my jsp file? How should I do it?
Just like regular Java, you'll need to import a class or package you want to include in your code.
<%@ page import="java.text.*, java.util.*" %>