Example usage for javax.servlet.jsp PageContext APPLICATION_SCOPE

List of usage examples for javax.servlet.jsp PageContext APPLICATION_SCOPE

Introduction

In this page you can find the example usage for javax.servlet.jsp PageContext APPLICATION_SCOPE.

Prototype

int APPLICATION_SCOPE

To view the source code for javax.servlet.jsp PageContext APPLICATION_SCOPE.

Click Source Link

Document

Application scope: named reference remains available in the ServletContext until it is reclaimed.

Usage

From source file:org.apache.struts.taglib.bean.TestMessageTag1_fr.java

public void testMessageTag1ArgNamePropertyApplicationScopeAlternateBundle_fr() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message.1"),
            PageContext.APPLICATION_SCOPE);
    runMyTest("testMessageTag1ArgNamePropertyApplicationScopeAlternateBundle", new Locale("fr", "fr"));
}

From source file:org.apache.struts.taglib.bean.TestMessageTag2.java

public void testMessageTag2ArgNamePropertyApplicationScopeDefaultBundle() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.2"),
            PageContext.APPLICATION_SCOPE);
    runMyTest("testMessageTag2ArgNamePropertyApplicationScopeDefaultBundle", new Locale("", ""));
}

From source file:org.apache.struts.taglib.bean.TestMessageTag2.java

public void testMessageTag2ArgNamePropertyApplicationScopeAlternateBundle() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message.2"),
            PageContext.APPLICATION_SCOPE);
    runMyTest("testMessageTag2ArgNamePropertyApplicationScopeAlternateBundle", new Locale("", ""));
}

From source file:org.apache.struts.taglib.bean.TestMessageTag2_fr.java

public void testMessageTag2ArgNamePropertyApplicationScopeDefaultBundle_fr() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.2"),
            PageContext.APPLICATION_SCOPE);
    runMyTest("testMessageTag2ArgNamePropertyApplicationScopeDefaultBundle", new Locale("fr", "fr"));
}

From source file:org.apache.struts.taglib.bean.TestMessageTag2_fr.java

public void testMessageTag2ArgNamePropertyApplicationScopeAlternateBundle_fr() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message.2"),
            PageContext.APPLICATION_SCOPE);
    runMyTest("testMessageTag2ArgNamePropertyApplicationScopeAlternateBundle", new Locale("fr", "fr"));
}

From source file:org.apache.struts.taglib.bean.TestMessageTag3.java

public void testMessageTag3ArgNamePropertyApplicationScopeDefaultBundle() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.3"),
            PageContext.APPLICATION_SCOPE);
    runMyTest("testMessageTag3ArgNamePropertyApplicationScopeDefaultBundle", new Locale("", ""));
}

From source file:org.apache.struts.taglib.bean.TestMessageTag3.java

public void testMessageTag3ArgNamePropertyApplicationScopeAlternateBundle() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message.3"),
            PageContext.APPLICATION_SCOPE);
    runMyTest("testMessageTag3ArgNamePropertyApplicationScopeAlternateBundle", new Locale("", ""));
}

From source file:org.apache.struts.taglib.bean.TestMessageTag3_fr.java

public void testMessageTag3ArgNamePropertyApplicationScopeDefaultBundle_fr() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.3"),
            PageContext.APPLICATION_SCOPE);
    runMyTest("testMessageTag3ArgNamePropertyApplicationScopeDefaultBundle", new Locale("fr", "fr"));
}

From source file:org.apache.struts.taglib.bean.TestMessageTag3_fr.java

public void testMessageTag3ArgNamePropertyApplicationScopeAlternateBundle_fr() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message.3"),
            PageContext.APPLICATION_SCOPE);
    runMyTest("testMessageTag3ArgNamePropertyApplicationScopeAlternateBundle", new Locale("fr", "fr"));
}

From source file:org.apache.struts.taglib.bean.TestMessageTag4.java

public void testMessageTag4ArgNamePropertyApplicationScopeDefaultBundle() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.4"),
            PageContext.APPLICATION_SCOPE);
    runMyTest("testMessageTag4ArgNamePropertyApplicationScopeDefaultBundle", new Locale("", ""));
}