I've downloaded serveral struts-layout zip files from
http://struts.application-servers.com/ * I place the struts-layout.tld within my WEB-INF directory and I place the struts-layout.jar file in the WEB-INF/lib directory.
* I modified the web.xml file to register the tld file.
* I created a sample
jsp that I could create a simple collection object and then iterate thru the collection using the layout:collection tag.
* The jsp includes:
<%@ taglib uri="/WEB-INF/struts-layout.tld" prefix="layout" %>
<%
List list = new ArrayList();
Program p = new Program();
p.setName("Item One");
p.setProgramId(new Integer(1));
list.add(p);
Program p2 = new Program();
p.setName("Item Two");
p2.setProgramId(new Integer(2));
list.add(p2);
Program p3 = new Program();
p3.setName("Item Three");
p3.setProgramId(new Integer(3));
list.add(p3);
Program p4 = new Program();
p4.setName("Item Four");
p4.setProgramId(new Integer(4));
list.add(p4);
pageContext.setAttribute("programList", list);
%>
<layout:row>
<layout:column>
<layout:collection name="programList" styleClass="row1" styleClass2="row2">
<layout:collectionItem title="Program Name" property="name"/>
<layout:collectionItem title="Program Id" property="programId"/>
</layout:collection>
</layout:column>
</layout:row>
But, all this work doesn't matter because I get an error stating:
Error in using tag library uri='/WEB-INF/struts-layout.tld' prefix='layout': The Tag class 'fr.improve.struts.taglib.layout.field.SuggestFieldTag' has no setter method corresponding to TLD declared attribute 'editType', (JSP 1.1 spec, 5.4.1) I noticed in the Change report that someone corrected this problem. Then why am I still getting the error?
Anyone else having this problem?
Thanks.