Sridhar, Doing <html-el:text property="ips(${Element.value})" /> is illegal in your case cause this would generate the following call : getIps(<Element.value>) and setIps(String key, Object value) with the result of Element.value as the 'key' and the new value as the value. But your HashMap doesn't contain any element by this key.
If you're trying to update the values of elements in the map stored by their keys then you just need the first <html-el:text property="ips(${Element.key})"> element. I hope I understand your what you're trying to achieve here. HTH, Erez -----Original Message----- From: Sridhar Kotagiri [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 8:03 PM To: Struts Users Mailing List Subject: RE: Struts Problem Hi Erez, when Im using html-el tags its throwing an exception <html-el:form action="/myaccount/advanced/edit/continue"> <logic:notEmpty name="editAdvancedForm" property="ip"> <b class="txtMedium" id="large"><bean:message bundle="content" key="title.ipaddresses"/></b> <table width="100%" cellspacing="0" cellpadding="2" border="0"> <logic:iterate id="Element" name="editAdvancedForm" property="ip"> <tr class="textbox" style="width:150px;"> <td><html-el:text property="ips(${Element.key})" /></td> <td><b><bean:message bundle="content" key="common.pointsto"/></b></td> <td><html-el:text property="ips(${Element.value})" /></td> </tr> </logic:iterate> </table> </logic:notEmpty> <html-el:form> org/apache/taglibs/standard/lang/support/ExpressionEvaluatorManager' javax.servlet.ServletException: org/apache/taglibs/standard/lang/support/ExpressionEvaluatorManager at org.apache.jasper.runtime.PageContextImpl.handlePageException Thanks! Sridhar -----Original Message----- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 1:26 PM To: 'Struts Users Mailing List' Subject: RE: Struts Problem!!!!Urgent The reason this is not working for you is that "Element" bean name is not around there when the request is populated back to your form. It is there only when the JSP is populated from the action inside the iteration. To do what you want to do: <html-el:text property="ips(${Element.key})" /> using the html-el taglib of Struts-EL. Haven't tested it but I think it should work. HTH, Erez -----Original Message----- From: Sridhar Kotagiri [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 6:16 PM To: Struts Users Mailing List Subject: Struts Problem!!!!Urgent Hi, I have a HashMap in my ActionForm bean.I am able to display the data.Butwhen I submit this form I am unable to carry the data.can anyone help me regarding this. <logic:notEmpty name="editAdvancedForm" property="ip"> <b class="txtMedium" id="large"><bean:message bundle="content" key="title.ipaddresses"/></b> <table width="100%" cellspacing="0" cellpadding="2" border="0"> <logic:iterate id="Element" name="editAdvancedForm" property="ip"> <tr class="textbox" style="width:150px;"> <td><html:text name="Element" property="key"/></td> <td><b><bean:message bundle="content" key="common.pointsto"/></b></td> <td><html:text name="Element" property="value"/></td> </tr> </logic:iterate> </table> </logic:notEmpty> Action Form public class EditAdvancedForm extends ValidatorForm { //~ Instance fields -------------------------------------------------------- private String domain_Id; private Map ip; public EditAdvancedForm(){ ip=new HashMap(); } public void setIps(String key,String value) { ip.put(key,value); } public Object getIps(String key) { return ip.get(key); } public Map getIp() { return ip; } /** * @param map */ public void setIp(Map map) { ip = map; } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]