K. Gil wrote:
className.var cannot be resolved to a type
i copied the hole project from my workspace into /webapps but the result is the same.
This error message means, that the program can't recognize "className.var" as a type.
The cause of the problem can be that you have not imported the package that contains "className.var"
Jeanne Boyarsky wrote:Connect.getMyConnection is a static method. This means you don't need jsp:useBean. That would be for an instance method.
Did you import the connection class on the top of your JSP? This should look like
<%@ page import="com.database.Connect" %>