--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
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
, 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
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
4 matches
Mail list logo