========================= #in application.resources (or wherever you store your messages) label1.condition1=SOME VALUE label1.condition2=SOME OTHER VALUE
========================= //in your Action MessageResources messages = getResources(request);
if (condition == condition1) {
form.setLabel1(messages.getMessage("label1.condition1");
} else if (condition == condition2) {
form.setLabel1(messages.getMessage("label1.condition2");
}
//etc, etcThe idea is
Gregory F. March wrote:
I have an application where a user logs in and what is presented to them depends on what organization they belong to.
Things like the web page title, labels, images, etc. are different for different organizations.
I'm thinking that I'd like to create application resources from the login action that can be referenced with the bean:message tag. This way, the key is always something like myapp.page.title rather than having to use logic: tags or jsp to determine the appropriate resource.
My questions are:
* Is the the appropriate way to do this sort of thing? * Irrespective of the answer to the above, can one create / modify application resources from java? (Like in an action?)
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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

