tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Knauf" <Aar...@geniesystems.com>
Subject Re: java.lang.NoSuchMethodError
Date Tue, 13 Mar 2001 20:53:57 GMT
The tag you are writing must have both a getter and a setter for each 
attribute listed in the TLD file.  e.g. if your attribute name is 'size', 
then your Tag class MUST have the following methods:

public int getSize();
public void setSize(int value);

Note that the methods follow the bean property naming conventions, so that 
the 's' in 'size' is lower case in the attribute name, but upper case in 
the getter and setter method names.  This is important.

Cheers

-----------------------------------------------------------------------------------------------
Aaron Knauf
Implementation Consultant
Genie Systems Ltd
Auckland, New Zealand
Ph. +64-9-573 3310 x812, email: aaronk@geniesystems.com
http://www.geniesystems.com
------------------------------------------------------------------------------------------------




Purna Ponguluri <pponguluri@xcare.net>
14/03/2001 05:39
Please respond to tomcat-dev

 
        To:     "'tomcat-bugs@cortexity.com'" <tomcat-bugs@cortexity.com>
        cc: 
        Subject:        java.lang.NoSuchMethodError


Hi,

when i am compile the jsp i am getting the following exception.Please tell
me the solutionto get rid from this exception.


java.lang.NoSuchMethodError
        at
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfo
Impl.java:524)
        at
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoIm
pl.java:432)
        at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
va:385)
        at
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java
:233)
        at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:706)
        at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)
        at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
        at org.apache.jasper.JspC.parseFile(JspC.java:367)
        at org.apache.jasper.JspC.parseFiles(JspC.java:632)
        at org.apache.jasper.JspC.main(JspC.java:680)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-dev-help@jakarta.apache.org



Mime
View raw message