From: Vladimir G. <vga...@ne...> - 2010-04-02 14:35:44
|
On Apr 1, 2010, at 5:13 PM, Hilmar Lapp wrote: >> >> Finally, I have changed several JSP pages that had "http://purl.org/phylo/treebase/phylows >> ...." urls hardwired so that they instead look up the tb2/PurlBase >> parameter. However, I used <%= ... %>, so someone more >> knowledgeable might want to adjust that syntax. > > The value of these parameters is application-wide, right? So, > wouldn't the easiest way be to have a class that sets these as > application context parameters from JNDI and gets executed when the > application is loaded? Or is this the way you implemented it? I just changed the implementation of an existing function (now called getPurlBase) in TreebaseUtil class to look up in JNDI instead of treebase.properties. The new function getSiteUrl just follows the same pattern. --VG |