I only used String as key. public Object getStringMapped(String key) { return map.get(key); }
public void setStringMapped(String key, Object value) { map.put(key, value); } Regards On 9/18/06, Lixin Chu <[EMAIL PROTECTED]> wrote:
On 9/17/06, Yujun Liang <[EMAIL PROTECTED]> wrote: > > Have you tried "Mapped Properties"? > http://struts.apache.org/1.2.9/faqs/indexedprops.html > > Regards this is a good point. I have not tried it. Is it ok (in terms of performance) to use a custom class as the key, not using Java primitives like Long ?
-- Yujun Liang [EMAIL PROTECTED]