I've done this before and we use it alot. Not really with company names though because what if the name changes...
maybe base it on the id of the customer? This might be the primary key and the primary key is unfortunately different depending on if you are production or uat etc... I think storing in the back-end wouldn't make sense since it is view level information. Maybe have something in the database like logoId and key off of that. sandeep --- "Gregory F. March" <[EMAIL PROTECTED]> wrote: > > On Jun 9, 2003, Sandeep Takhar > <[EMAIL PROTECTED]> wrote: > > |can you store in the database and find in the > |resources. > | > |Really want to try and get away from > | > |if (company='') > |else if... > > Sandeep, > > I could store them in a db, but how does that get > you away from the > 'if' you mention? I definitely want to get away > from that 'if' - > that's what prompted my initial question. > > I was thinking of constructing resources like > (pseudo code to follow): > > company1.app1.page1.item=value > company2.app1.page1.item=value > company3.app1.page1.item=value > > and then constructing the resource like (in either > java or > javascript): > > company = user.getCompany(); // "company2" for > example > imgResource = company + "app1.page1.item"; > > But, I'm not sure if this is acceptable. > > Comments? > > Thanks, > > /greg > > -- > Gregory F. March -=- > http://www.gfm.net:81/~march -=- AIM:GfmNet > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

