C'mon folks, there has to be some sort of relatively clean way to do this. - rob
On 4/25/05, Robert Sanheim <[EMAIL PROTECTED]> wrote: > I want to do something fairly simple which I haven't seen a good > example for yet: iterate through all messages from my default > application.resources file that match a certain pattern, and display > them on a jsp. The use case here is a navigational page that I want > to have generated dynamically from the titles that are defined in the > msg resources. So in app resources I have: > > title.welcome=Welcome > title.error=General Error Page > title.login=Login > title.whatever=Some Page... > // about 6 more titles, plus any other app wide properties > > So the psuedo code is like this: > > for every key in msg resources > if key matches "title.*" > put value for key into map > > put map onto the request or session > > I've looked through the archives, the wiki, the MessageResources API > and see no way of doing this short of just loading the resource file a > second time as java.util.Properties instance - which I'd like to avoid > as it violates DRY. > > Am I missing something here? > > thanks, > Rob > -- > http://www.robsanheim.com/ > -- http://www.robsanheim.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]