Hi,
i have still a problem with the c:forEach tag in a Jsp.
In a DynaValidatorForm i set an array of Objects as an element of form-property "artikel" with the action "de.zakps.action.generiereArtikelform". That works fine.
The Iteration of the array with the c:forEach tag works very good.
But the problem is the <html:text element to get the property "menge" in the html:form.
The error message is:Cannot find bean artikel in any scope
What must i do to access the bean artikel??? How can i use the artikel in the form??
Thanks for Help
Axel Sachmann
----------------------Struts-Config-------------------------
<struts-config>
<data-sources />
<form-beans>
<form-bean name="dynamicArrayForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="artikel" type="de.zakps.global.dao.Verkaufsartikel[]"/>
</form-bean>
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action path="/generiereArtikelform" type="de.zakps.action.generiereArtikelform" name="dynamicArrayForm" scope="session"
validate="false">
<forward name="success" path="/module/anzeigenKategorie.jsp" />
</action>
-------------JSP Page anzeigenKategorie.Jsp----------------
<%@ page language="java" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix='c'%>
<table border="0" width="100%">
<tbody><tr >
<td class="text" colspan="2"><b>
<html:form action="/kalkulierePositionen.do">
<TABLE WIDTH="80%" BORDER="1">
<c:forEach var="artikel" items="${dynamicArrayForm.map.artikel}" >
<TR>
<TD> <c:out value="${artikel.kategorie}"/> - <c:out value="${artikel.setbezeichnungkurz}"/>
<c:out value="${artikel.preisnetto}"/> <c:out value="${artikel.preiseinheit}"/>
</TD>
<TD><c:out value="${artikel.warengruppe}"/></TD>
<TD><c:out value="${artikel.angebotsdatumbis}"/>
<html:text name="artikel" indexed="true" property="menge"/> <<<<<<<<<<<<<<<<<<<------------------Problem is here
</TD>
</TR>
</c:forEach>
</table>
<html:submit/>
</html:form>
</body>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]