I have just started to use displaytag to replace struts-layout
for displaying tables and am having a problem with my first table. I have
a simple jsp file that tries to display a vector with 4 items in it. The
list contains the 4 items to be displayed but the table says nothing to
display. I included the html output, the jsp code, and the output
from the log files. I am running on tomcat 5.0.28 with jvm 1.4.2_08 and
struts 1.2.9 Thanks for any help getting started. ********* Html output ************** 4 Nothing found to display. ******** code snipet ----- test.jsp ******* <%@ taglib uri="http://displaytag.sf.net"
prefix="display" %> <[EMAIL PROTECTED] import="com.sample.bean.StringBean"
%> <[EMAIL PROTECTED] import="java.util.Vector" %> <% Vector clist=new
Vector(); StringBean sb =
new StringBean(); sb.setContent("Test1"); clist.add(sb); sb = new
StringBean();
sb.setContent("Test2"); clist.add(sb); sb = new
StringBean();
sb.setContent("Test3"); clist.add(sb); sb = new
StringBean();
sb.setContent("Test4"); clist.add(sb);
pageContext.setAttribute("clist",clist); %>
<%=clist.size()%> <display:table name="clist" >
<display:column property="conent" title="Stuff"/> </display:table> ********* Log file 19:34:10.091 TP-Processor3
DEBUG TableTag
1618 [null] release() called 19:34:10.097 TP-Processor3
DEBUG TableTag
713 [null] doStartTag called 19:34:10.099 TP-Processor3
DEBUG LookupUtil
97 getBeanValue - bean: {clist} 19:34:10.100 TP-Processor3
DEBUG TableTag
732 [null] setting media [html] in this.pageContext 19:34:10.102 TP-Processor3
DEBUG TableTag 773
[null] doIteration called 19:34:10.103 TP-Processor3
DEBUG TableTag
822 [null] doIteration() - iterator ended after 0 rows 19:34:10.104 TP-Processor3
DEBUG TableTag
684 [null] first iteration=true (row number=1) 19:34:10.106 TP-Processor3
DEBUG TableTag
631 [null] addColumn
HeaderCell[columnNumber=0,title=Stuff,beanPropertyName=conent] 19:34:10.107 TP-Processor3
DEBUG ColumnTag
816 columnTag.addHeaderToTable() :: first iteration -
adding header HeaderCell[columnNumber=0,title=Stuff,beanPropertyName=conent] 19:34:10.108 TP-Processor3
DEBUG TableTag
754 [null] doAfterBody called - iterating on row 1 19:34:10.110 TP-Processor3
DEBUG TableTag 773 [null]
doIteration called 19:34:10.111 TP-Processor3
DEBUG TableTag
822 [null] doIteration() - iterator ended after 1 rows 19:34:10.112 TP-Processor3
DEBUG TableTag
1140 [null] doEndTag called 19:34:10.113 TP-Processor3
DEBUG TableModel
471 [null] sorting page list 19:34:10.115 TP-Processor3
DEBUG TableWriterTemplate
90 [null] writeTable called for table [null] 19:34:10.116 TP-Processor3
DEBUG TableTag
1235 [null] doEndTag – end |
_______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user