use of org.apache.struts.util.PropertyMessageResources in project sonarqube by SonarSource.
the class TagTestBase method putBundleInScope.
protected void putBundleInScope(int scope, boolean returnNull) {
MessageResourcesFactory factory = MessageResourcesFactory.createFactory();
MessageResources messageResources = new PropertyMessageResources(factory, "org.apache.struts.taglib.sample");
messageResources.setReturnNull(returnNull);
pageContext.setAttribute(Globals.MESSAGES_KEY, messageResources, scope);
}
Aggregations