Search in sources :

Example 1 with PropertyMessageResources

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);
}
Also used : PropertyMessageResources(org.apache.struts.util.PropertyMessageResources) MessageResources(org.apache.struts.util.MessageResources) PropertyMessageResources(org.apache.struts.util.PropertyMessageResources) MessageResourcesFactory(org.apache.struts.util.MessageResourcesFactory)

Aggregations

MessageResources (org.apache.struts.util.MessageResources)1 MessageResourcesFactory (org.apache.struts.util.MessageResourcesFactory)1 PropertyMessageResources (org.apache.struts.util.PropertyMessageResources)1