Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaytag problem

 
Wilson Gordon
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using displaytag 1.1.1 with struts and encountered the following problem:

/tests/display.jsp(4): Error in using tag library uri='http://displaytag.sf.net' prefix='display': The Tag class 'org.displaytag.tags.TableTag' has no setter method corresponding to TLD declared attribute 'varTotals', (JSP 1.1 spec, 5.4.1)
probably occurred due to an error in /tests/display.jsp line 4:

<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>

I placed the displaytag-1.1.1.jar file to the WEB-INF/lib folder.

Any idea how I could fix this problem?

EDIT: this is under WebLogic 8.1 SP2.

Thanks.
[ August 31, 2007: Message edited by: Wilson Gordon ]
 
Wilson Gordon
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like it's because Weblogic 8.1 doesn't have JSP 1.2 container...
 
Wilson Gordon
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For displaytag, anyone know how I could surround the generated table with a <div> to make the codes look something like this:

[pagination codes]
<div id="" class="">
<table>
........
</table>
</div>
[pagination codes]

Thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic