You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sudha kannu <su...@rediffmail.com> on 2003/05/06 15:57:24 UTC
Nesting of "logic:iterate" tag
Hai all
I am having the following problen with nesting of logic:iterate
tag in tomcat 4.1.0. But it works fine in tomcat 4.0. But i want
to work with Tomact 4.1.0.
My jsp code is
<%@ page language="java" import="java.util.*"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<jsp:useBean id="units" class="com.savant.bpm.common.Units"/>
<bean:define id="unitcategories" scope="page" name="units"
property="categories" />
<%
pageContext.setAttribute("unitcats",unitcategories);
%>
<html:html locale="true">
<script>
var units = new Array();
<logic:iterate id="categoryiterator" name="units"
property="categories" indexId="n">
units[<%=n.intValue()%>] = new Array();
<%
Vector vect = units.getUnits(n.intValue()) ;
pageContext.setAttribute("unitvect",vect);
%>
<logic:iterate id="unititerator" name="unitvect" indexId="m">
units[<%=n.intValue()%>][<%=m.intValue()%>] = '<%=
vect.elementAt(m.intValue())%>' ;
</logic:iterate>
</logic:iterate>
alert(units);
</script>
</html:html>
My error is
D:\Tomcat\work\Standalone\localhost\BPF\jsp\iterate_jsp.java:140:
_jspx_unititerator_1 is already defined in
_jspService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
java.lang.Object _jspx_unititerator_1 =
unititerator;
^
Please anyone can reply this
Thank you
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org