Example usage for org.springframework.web.util TagUtils SCOPE_PAGE

List of usage examples for org.springframework.web.util TagUtils SCOPE_PAGE

Introduction

In this page you can find the example usage for org.springframework.web.util TagUtils SCOPE_PAGE.

Prototype

String SCOPE_PAGE

To view the source code for org.springframework.web.util TagUtils SCOPE_PAGE.

Click Source Link

Document

Constant identifying the page scope.

Usage

From source file:org.openmrs.web.taglib.OpenmrsMessageTagTest.java

@Test
@Verifies(value = "resolve a Tag with var not set to null", method = "doEndTag()")
public void doEndTag_shouldEvaluateVarIfIsNotNull() throws Exception {
    final String varName = "Mary";
    final String expectedOutput = "had a little lamb";
    openmrsMessageTag.setVar(varName);//from  w  w w .j  av  a  2 s .co m
    DefaultMessageSourceResolvable message = new DefaultMessageSourceResolvable(new String[] { "test" },
            expectedOutput);
    openmrsMessageTag.setMessage(message);
    openmrsMessageTag.setScope(TagUtils.SCOPE_PAGE);

    checkDoEndTagEvaluationOfVar(varName, PageContext.PAGE_SCOPE, expectedOutput);
}