I wrote a java class to connect to database (DBManager.class) and then use JSP to call the java class to get the output that is read from the database. Here, i use Apache tomcat.

it gives me an error when i try in my browser
here the message error:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The import DBManager cannot be resolved

could anyone help me please ?
how can i resolve this error ? explain me in detail please. . :'(

Recommended Answers

All 2 Replies

Please provide a code if you do not want to see general trouble shooting questions...

The import DBManager cannot be resolved

You need to import the class:

<%@ page import="package.DBManager"%>
commented: Good answer, but you should let him sweat little +22
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.