Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
Resin 3.0.13; and all other J2EE containers that use Config.FMT_LOCALIZATION_CONTEXT without scope.
Description
Problem is as follows:
context.setAttribute(Config.FMT_LOCALIZATION_CONTEXT + ".application", MessagesManager.DEFAULT_BASENAME);
only works on JSTL implementations which append the REQUEST_SCOPE (.application) in the servlet context.
Resin and some other J2EE containers do not do this. For these containers, you must instead use:
context.setAttribute(Config.FMT_LOCALIZATION_CONTEXT, MessagesManager.DEFAULT_BASENAME);
without the appended .application.
The solution is to do both in the init() method.
This issue also arises in the Spring Framework, see:
http://www.javaresearch.org/source/spring1.0.2/org/springframework/web/servlet/support/JstlUtils.java.html
Checklists
Acceptance criteria