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: [EMAIL PROTECTED]
http://www.geniesystems.com
------------------------------------------------------------------------------------------------



Purna Ponguluri <[EMAIL PROTECTED]>

14/03/2001 05:39
Please respond to tomcat-dev

       
        To:        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
        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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



Reply via email to