Some part of code in authontication.jsp is given below
dbConnection1.class file is in mypackage folder.
But when I execute authentication.jsp
Error I get is �java.lang.NoClassDefFoundError: org/apache/jsp/dbConnection1 �
I like to know what is incorrect here. Do we need to mention classpath somewhere so that containers look for dbConnection1.class in WEB-INF/classes/com/mypackage directory ? If yes please help me with this. Thanks
Container won't automatically import the class files for you. It will find the class files in the classpath (WEB-INF/classes/... in this case). You should have classes folder inside WEB-INF and within that you can have your package structure. Also you should import the class (like you have imported other java packages) you are using in <jsp:useBean .. > tag.