Example usage for javax.servlet.jsp PageContext REQUEST_SCOPE

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

Introduction

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

Prototype

int REQUEST_SCOPE

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

Click Source Link

Document

Request scope: the named reference remains available from the ServletRequest associated with the Servlet until the current request is completed.

Usage

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

public void testMessageTag1ArgNamePropertyNoScopeDefaultBundle_fr() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.1"),
            PageContext.REQUEST_SCOPE);
    runMyTest("testMessageTag1ArgNamePropertyNoScopeDefaultBundle", new Locale("fr", "fr"));
}

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

public void testMessageTag1ArgNamePropertyRequestScopeDefaultBundle_fr() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.1"),
            PageContext.REQUEST_SCOPE);
    runMyTest("testMessageTag1ArgNamePropertyRequestScopeDefaultBundle", new Locale("fr", "fr"));
}

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

public void testMessageTag1ArgNamePropertyNoScopeAlternateBundle_fr() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message.1"),
            PageContext.REQUEST_SCOPE);
    runMyTest("testMessageTag1ArgNamePropertyNoScopeAlternateBundle", new Locale("fr", "fr"));
}

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

public void testMessageTag1ArgNamePropertyRequestScopeAlternateBundle_fr() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message.1"),
            PageContext.REQUEST_SCOPE);
    runMyTest("testMessageTag1ArgNamePropertyRequestScopeAlternateBundle", new Locale("fr", "fr"));
}

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

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

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

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

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

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

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

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

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

public void testMessageTag2ArgNamePropertyNoScopeDefaultBundle_fr() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.2"),
            PageContext.REQUEST_SCOPE);
    runMyTest("testMessageTag2ArgNamePropertyNoScopeDefaultBundle", new Locale("fr", "fr"));
}

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

public void testMessageTag2ArgNamePropertyRequestScopeDefaultBundle_fr() {
    pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.2"),
            PageContext.REQUEST_SCOPE);
    runMyTest("testMessageTag2ArgNamePropertyRequestScopeDefaultBundle", new Locale("fr", "fr"));
}