Whenever you use a class without a package name and without an import it is not a class without a package but a class that is in the same package as the class that contains the usage. Since the generated code has a package statement it would search TemplateDesc in that package. (Where it doesn't exist)
Prior to jdk 1.4 you could use a packageless class by importing the class direct. AFAIK it's forbidden to use package less classes at all since jdk 1.4. > -----Original Message----- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 23, 2003 6:49 AM > To: Tomcat Users > Subject: JSP won't work unless have package in taglib .java file > > > If I have a tld object (ie TemplateDesc.java) with no project > and place it in WEB-INF/classes - it won't work. But if I > give it a package name and place it in > WEB-INF/classes/package - then it works. > > The problem seems to be that with no package it generates the code: > TemplateDesc _jspx_th_tl_TP_0 = (TemplateDesc) > _jspx_tagPool_tl_TP.get(com.windwardreports.TemplateDesc.class); > > which makes sense. But why can it find it as part of a > package but not with no package? > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
