Re: Problem with map-based property in ActionForm

2006-07-21 Thread Scott Van Wart
--Original Message- From: Scott Van Wart [mailto:[EMAIL PROTECTED] Sent: Friday, July 21, 2006 2:54 PM To: Struts Users Mailing List Subject: Problem with map-based property in ActionForm I have an action form defined like this: public MyForm extends ActionForm { private Map values = n

Re: Problem with map-based property in ActionForm

2006-07-21 Thread Scott Van Wart
2.9/faqs/indexedprops.html I think it remains for you to provide a method a la: public Object getKey(String key) { return values.get(key); } Regards, M -Original Message- From: Scott Van Wart [mailto:[EMAIL PROTECTED] Sent: Friday, July 21, 2006 2:54 PM To: Struts Users Mailing List

RE: Problem with map-based property in ActionForm

2006-07-21 Thread Dean, Michael
, 2006 2:54 PM To: Struts Users Mailing List Subject: Problem with map-based property in ActionForm I have an action form defined like this: public MyForm extends ActionForm { private Map values = new TreeMap(); public Map getValues() { return this.values; } public Set getKeys() { return

Problem with map-based property in ActionForm

2006-07-21 Thread Scott Van Wart
I have an action form defined like this: public MyForm extends ActionForm { private Map values = new TreeMap(); public Map getValues() { return this.values; } public Set getKeys() { return this.values.keySet(); } } and in my JSP, value="first">First value="second">Second When I acce