Hi i have under given form , jsp and am getting exception that the getter method not found.
<%@ 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"%> <html> <head> <meta name = "Generator" content = "Easy Struts Xslt generator for Eclipse (http://easystruts.sf.net)."> <title>Struts Form for mapForm</title> </head> <body> <html:form action="/map"> <table> <logic:iterate id="dataarray" name="mapForm" property="dataarray" indexId="index"> <tr> <td><bean:write name="dataarray" property="name"/></td> <td><html:text indexed="true" name="dataarray" property="value"/></td> </tr> </logic:iterate> <table> <html:submit/><html:cancel/> </html:form> <body> </html> ******************************** package com.test.struts.forms; import java.util.ArrayList; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; import com.test.bean.ColDataBean; /** * MapForm.java created by EasyStruts - XsltGen. * http://easystruts.sf.net * created on 09-19-2003 * * XDoclet definition: * @struts:form name="mapForm" */ public class MapForm extends ActionForm { // --------------------------------------------------------- Instance Variables /** myarray property */ private ArrayList dataarray; // --------------------------------------------------------- Methods /** * Method validate * @param ActionMapping mapping * @param HttpServletRequest request * @return ActionErrors */ public ActionErrors validate( ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if(dataarray==null || dataarray.size()==0) errors.add("userid",new ActionError("abcd")); return errors; } /** * Returns the myarray. * @return ArrayList */ public ArrayList getDataarray() { System.out.println("In get array"); return dataarray; } /** * Set the myarray. * @param myarray The myarray to set */ public void setDataarray(ArrayList list) { System.out.println("In set array"); this.dataarray = list; } /** * Returns the myarray. * @return ArrayList */ public ColDataBean getDataarray(int index) { return (ColDataBean)dataarray.get(index); } /** * Set the myarray. * @param myarray The myarray to set */ public void setDataarray(int index , ColDataBean bean) { dataarray.add(index,bean); } } I home to achieve an input form based on the ArrayList which contains the list of beans which has two properties name, value. Is this approach correct other wise how do i achieve the same using a TreeMap based input form. Thanks and Regards Shishir Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]