Cool. Thanks. Barbara Baughman X2157
On Thu, 8 Jun 2006, Keith R. Bennett wrote: > Barbara - > > Jakarta Commons Collections has all kinds of neat classes and utilities > for this kind of thing. While unfortunately they don't support > generics, larvalabs has a product that does. The URL > http://collections.sourceforge.net redirects to > http://larvalabs.com/collections/. The download page is at > http://sourceforge.net/project/showfiles.php?group_id=139125. However, > the most recent version is 4.0 Beta 3 dated July 7, 2005. > > The link to their javadoc is > http://mail-archives.apache.org/mod_mbox/jakarta-velocity-user/, and you > can find the class "UnmodifiableMap". > > Regards, > Keith > > Barbara Baughman wrote: > > >BTW, I never pass a HashMap to the context. I have created a class > >called SecureHashMap that looks exactly like HashMap but overrides all > >methods that would change the content so they do nothing. So in > >actual practice, my last line would read: > >ctx.put("map",new SecureHashMap<String, String>(hm)); > > > >Barbara Baughman > > > > > > > --------------------------------------------------------------------- > 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]