firblazer — 2010-02-12T09:50:09-05:00 — #1
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?
rushiku — 2010-02-12T21:13:25-05:00 — #2
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." %>
firblazer — 2010-02-13T02:27:27-05:00 — #3