DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4919>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4919

JSP won't compile when using "class" attribute (standard HTML4 style sheet attribute)

           Summary: JSP won't compile when using "class" attribute (standard
                    HTML4 style sheet attribute)
           Product: Tomcat 3
           Version: 3.3 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have a custom tag that Tomcat (Jasper) won't compile.

The problem is one of its attributes called "class". I want to include this 
attribute so that users of the tag can set the style sheet attribute in the 
same way as for other HTML4 tags.

Corresponding to the "class" attribute, there is a setClass(String) method. 
There is not a getClass() method as it clashes with the getClass() method of 
the underlying Object class.

I have tried this on Tomcat to 3.3 and it produces the following error message:

    - org.apache.jasper.compiler.CompileException:
    /usr3/jakarta-tomcat-3.3/webapps/panportalDev/forms/ieformtest.jsp(41,0)
    Unable to find setter method for attribute: class
    at org.apache.jasper.compiler.TagBeginGenerator.generateSetters

There is public void setClass(String s) in the Tag
but, of course, no property called 'class'.


Using "class" as an attribute is very natural for page designers so I expect 
there is a workaround.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to