Thank you very much ----- Original Message ----- From: "Vikramjit Singh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 25, 2002 1:20 PM Subject: Re: Why java class for taglib not found?
> the TagClass has to be in a package. you cannot write TagClass without a > package name. > > your is <tagclass>CounterTag</tagclass> > > like <tagclass>mypackage.SomeTag</tagclass> > > Hope this helps. > Vikramjit Singh, > Systems Engineer, > GTL Ltd. > Ph. 7612929-3140 > > > -----Original Message----- > From: Isak Rickyanto [mailto:[EMAIL PROTECTED]] > Sent: Sunday, March 24, 2002 10:32 PM > To: [EMAIL PROTECTED] > Subject: Why java class for taglib not found? > > > I have problem with custom tag > I have added in my web.xml : > <taglib> > <taglib-uri>counter</taglib-uri> > <taglib-location>/WEB-INF/counter.tld</taglib-location> > </taglib> > > I also have the counter.tld : > <?xml version="1.0" encoding="ISO-8859-1" ?> > <!DOCTYPE taglib > PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" > "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> > > <taglib> > <tlibversion>1.0</tlibversion> > <jspversion>1.2</jspversion> > <shortname>Counter Tag</shortname> > <info>This tag display Counter</info> > <tag> > <name>counter</name> > <tagclass>CounterTag</tagclass> > <bodycontent>empty</bodycontent> > </tag> > </taglib> > > but when i use in my code : > <%@ taglib uri="counter" prefix="util" %> > <html> > <head> > <title>Hit Counter with Custom Tag </title> > This page has visited for <util:counter/> times > </body> > </html> > > I got this error messages : > > org.apache.jasper.JasperException: Unable to compile class for JSP > An error occurred at line: 6 in the jsp file: /countertag.jsp > Generated servlet error: > C:\tomcat4\work\localhost\_\countertag$jsp.java:59: Class > org.apache.jsp.CounterTag not found. > CounterTag _jspx_th_util_counter_0 = new CounterTag(); > ^ > An error occurred at line: 6 in the jsp file: /countertag.jsp > Generated servlet error: > C:\tomcat4\work\localhost\_\countertag$jsp.java:59: Class > org.apache.jsp.CounterTag not found. > CounterTag _jspx_th_util_counter_0 = new CounterTag(); > ^ > Why ? > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
