permaculture playing cards
The moose likes JSP and the fly likes Jsp translation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp translation error" Watch "Jsp translation error" New topic

Jsp translation error

Akshay Singhvi
Ranch Hand

Joined: Nov 08, 2005
Posts: 93
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.

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 :
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>user can specify the max number of column above which the pagination will appear on both ends. </description>
other arrtibute tags

The java file( has this entry:

public void setColumnLimit(String columnLimit) {
this.columnLimit = columnLimit;

Can you help me out where am i doing wrong.....
[ June 14, 2007: Message edited by: Bear Bibeault ]

Regards,<br />Akshay Singhvi<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (86%)
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

When posting code, it makes the code a lot easier to read if you use UBB code tags. Please read this for more information.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Jsp translation error
jQuery in Action, 3rd edition