In order to compile a custom tag, you don't need a get accessor method (i.e.
getClass()). You need to have the corresponding set method for each
attribute. In this case, there is not a setClass() in Object.
-----Original Message-----
From: Robert Petersen
To: [EMAIL PROTECTED]
Sent: 5/21/01 12:27 PM
Subject: RE: Custom Tag Problem
I don't think your tag should compile because you can't have a
getClass()
method.
Reason being that getClass() lives on java.lang.Object and is final,
i.e.
you
can't override it.
- Robert Petersen
http://www.orangefood.com
-----Original Message-----
From: Kevin Long [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 8:43 AM
To: '[EMAIL PROTECTED]'
Subject: Custom Tag Problem
I'm using Tomcat 3.2.1. I have a custom tag that has some standard HTML
attributes in the custom tag. One of the attributes is called "class".
When I try to load the JSP page that contains this tag with the
attribute,
I'm getting a compile error. Here is the stack trace:
org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:476)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146
)
at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J
spSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
8)
at java.lang.Thread.run(Thread.java:484
Thanks for any assistance!
Kevin Long
[EMAIL PROTECTED]