I need to get struts MessageResources. I see the following options. I wonder if there are any differences. Thanks.
Option 1: MessageResources.getMessageResources("MessageResources");
Option 2: MessageResourcesFactory.createFactory().createResources(“MessageResources”);
Option 3:
(MessageResources) request.getAttribute(Globals.MESSAGES_KEY);
Option 1: MessageResources.getMessageResources("MessageResources");
Option 2: MessageResourcesFactory.createFactory().createResources(“MessageResources”);
Option 3:
(MessageResources) request.getAttribute(Globals.MESSAGES_KEY);