Jsp translation error...

in my custom tag, i just added an attribute, for which i made an entry in the tld file and implemented the setter for it in the implementation java file.

When i use this attribute in the jsp page it says

Jsp translate:Error failed to locate setter method for attribute in tag class

what could be the reson for it.

The java file is present in the project in the form of jar files which i have imported in the project.

[454 byte] By [Akshua] at [2007-11-27 7:32:22]
# 1
dunno... post your servlet code, your TLD, and your JSP, and we'll have a look...
corlettka at 2007-7-12 19:12:37 > top of Java-index,Java Essentials,New To Java...
# 2

the jsp code is :

<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display"%>

<display:table name="requestScope.list" cellpadding="3" cellspacing="0" id="row" excludedParams="*" requestURI="javascript:submitPage()" requestURIcontext="false" columnLimit="4">

the tld file is :

<tag>

<name>table</name>

<tag-class>org.displaytag.tags.TableTag</tag-class>

<tei-class>org.displaytag.tags.TableTagExtraInfo</tei-class>

<body-content>JSP</body-content>

<display-name>table</display-name>

<description>

Displays a list in an html table, formatting each item in the list according to the Column tags nested inside of

this tag. Use the list attribute to indicate the Collection of data, in some scope, that the tag should operate

on. Supports the export of the list data to alternative formats such as CSV, Excel, and XML. The contents of the

list can be sorted, and the list can be broken into individual pages for display. If you use this tag in Struts,

or in some other framework where the page is included via a jsp:include, you should use the requestURI attribute

to indicate where tag generated links should point.

</description>

<attribute>

<name>columnLimit</name>

<required>false</required>

<rtexprvalue>true</rtexprvalue>

<type>java.lang.String</type>

<description>user can specify the max number of column above which the pagination will appear on both ends. </description>

</attribute>

other arrtibute tags

</tag>

The java file(TableTag.java) has this entry:

public void setColumnLimit(String columnLimit) {

this.columnLimit = columnLimit;

}

Akshua at 2007-7-12 19:12:37 > top of Java-index,Java Essentials,New To Java...
# 3
TableTag.java file is present as a jar file in my project.
Akshua at 2007-7-12 19:12:37 > top of Java-index,Java Essentials,New To Java...