Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jsp translation error  RSS feed

Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
Author and ninkuma
Posts: 66425
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When posting code, it makes the code a lot easier to read if you use UBB code tags. Please read this for more information.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!