Path: csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Chris Riesbeck Newsgroups: comp.lang.java.programmer Subject: Re: JSTL: getting a map's keys Date: Mon, 26 Mar 2012 14:10:48 -0500 Lines: 26 Message-ID: <9tbt9pFpauU1@mid.individual.net> References: <9spbepF1baU1@mid.individual.net> <9srshfFjo5U1@mid.individual.net> <9sruffF39oU1@mid.individual.net> <14359232.4616.1332266714833.JavaMail.geo-discussion-forums@pbcr5> <9sujq2Foc1U1@mid.individual.net> <9t1791Fdo5U1@mid.individual.net> <11405563.61.1332447814183.JavaMail.geo-discussion-forums@pbctp7> <9t3pslFi0vU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net q3ApJAakfGJjPX328wiYKAHD8MK9WL+a01kxcxMqr9FOhCrfCj Cancel-Lock: sha1:OTirvewZUPVTzNBXci4BT+RqsEk= User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Thunderbird/11.0 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:13192 On 3/23/2012 3:50 PM, Lew wrote: > Chris Riesbeck wrote: >> Lew wrote: >>> >>> I was thinking along the lines of this incompletely worked-through >>> notion: >>> >>> public class ContactScreenBacker >>> { >>> private final Map rates = howeverYouSetItUp(); >>> public Map getRates() { return >>> Collections.unmodifiableMap(rates); } >>> public Set getKeys() { return >>> Collections.unmodifiableSet(rates.getKeys(); } >>> // ... >>> } >> Yes, that's probably the approach I'll take. Not quite what I'd >> wanted, but >> close enough and I can't see why it shouldn't work. > > Let us know how it plays out, please. So far, fine. Only time will tell if it pays off in how my JSP looks. Thanks