hello, i tried a sample program of jsp using beans. i created a package of beans->jsp->counter in the counter package i had writen the count1.java file n i had compiled it this total beans package is in f:\beans\jsp\counter\count1.java n i had writen a jsp file calling this class in that n i placed in root folder of webapps of tomcat 5 n when i m calling this i got usebean class is invalid then i pasted the total beans package into root->web-inf->classes folder then also im geting the same can any one please sugest me a solution for my problem.