List of usage examples for javax.servlet.jsp PageContext APPLICATION_SCOPE
int APPLICATION_SCOPE
To view the source code for javax.servlet.jsp PageContext APPLICATION_SCOPE.
Click Source Link
From source file:org.apache.struts.taglib.bean.TestSizeTag.java
public void testSizeTagNamePropertyArrayNoScopeNested() throws IOException, ServletException { request.setAttribute("runTest", "testSizeTagNamePropertyArrayNoScopeNested"); SimpleBeanForTesting sbft = new SimpleBeanForTesting(); SimpleBeanForTesting sbft2 = new SimpleBeanForTesting(); sbft.setArray(strings);//from w w w. j a v a 2 s. c o m sbft2.setNestedObject(sbft); pageContext.setAttribute(REQUEST_KEY, sbft2, PageContext.APPLICATION_SCOPE); pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp"); }
From source file:org.apache.struts.taglib.bean.TestSizeTag.java
public void testSizeTagNamePropertyArrayApplicationScopeNested() throws IOException, ServletException { request.setAttribute("runTest", "testSizeTagNamePropertyArrayApplicationScopeNested"); SimpleBeanForTesting sbft = new SimpleBeanForTesting(); SimpleBeanForTesting sbft2 = new SimpleBeanForTesting(); sbft.setArray(strings);//from w ww . j a va2 s.co m sbft2.setNestedObject(sbft); pageContext.setAttribute(REQUEST_KEY, sbft2, PageContext.APPLICATION_SCOPE); pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp"); }
From source file:org.apache.struts.taglib.bean.TestSizeTag.java
public void testSizeTagNameCollectionApplicationScope() throws IOException, ServletException { request.setAttribute("runTest", "testSizeTagNameCollectionApplicationScope"); pageContext.setAttribute(REQUEST_KEY, collection, PageContext.APPLICATION_SCOPE); pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp"); }
From source file:org.apache.struts.taglib.bean.TestSizeTag.java
public void testSizeTagNamePropertyCollectionNoScope() throws IOException, ServletException { request.setAttribute("runTest", "testSizeTagNamePropertyCollectionNoScope"); SimpleBeanForTesting sbft = new SimpleBeanForTesting(); sbft.setCollection(collection);//www.j a va 2 s. c om pageContext.setAttribute(REQUEST_KEY, sbft, PageContext.APPLICATION_SCOPE); pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp"); }
From source file:org.apache.struts.taglib.bean.TestSizeTag.java
public void testSizeTagNamePropertyCollectionApplicationScope() throws IOException, ServletException { request.setAttribute("runTest", "testSizeTagNamePropertyCollectionApplicationScope"); SimpleBeanForTesting sbft = new SimpleBeanForTesting(); sbft.setCollection(collection);// w w w . j a va 2 s . c o m pageContext.setAttribute(REQUEST_KEY, sbft, PageContext.APPLICATION_SCOPE); pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp"); }
From source file:org.apache.struts.taglib.bean.TestSizeTag.java
public void testSizeTagNamePropertyCollectionNoScopeNested() throws IOException, ServletException { request.setAttribute("runTest", "testSizeTagNamePropertyCollectionNoScopeNested"); SimpleBeanForTesting sbft = new SimpleBeanForTesting(); SimpleBeanForTesting sbft2 = new SimpleBeanForTesting(); sbft.setCollection(collection);/* w w w . j av a 2 s . c om*/ sbft2.setNestedObject(sbft); pageContext.setAttribute(REQUEST_KEY, sbft2, PageContext.APPLICATION_SCOPE); pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp"); }
From source file:org.apache.struts.taglib.bean.TestSizeTag.java
public void testSizeTagNamePropertyCollectionApplicationScopeNested() throws IOException, ServletException { request.setAttribute("runTest", "testSizeTagNamePropertyCollectionApplicationScopeNested"); SimpleBeanForTesting sbft = new SimpleBeanForTesting(); SimpleBeanForTesting sbft2 = new SimpleBeanForTesting(); sbft.setCollection(collection);//ww w. j a v a 2s. co m sbft2.setNestedObject(sbft); pageContext.setAttribute(REQUEST_KEY, sbft2, PageContext.APPLICATION_SCOPE); pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp"); }
From source file:org.apache.struts.taglib.bean.TestSizeTag.java
public void testSizeTagNameMapApplicationScope() throws IOException, ServletException { request.setAttribute("runTest", "testSizeTagNameMapApplicationScope"); pageContext.setAttribute(REQUEST_KEY, map, PageContext.APPLICATION_SCOPE); pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp"); }
From source file:org.apache.struts.taglib.bean.TestSizeTag.java
public void testSizeTagNamePropertyMapNoScope() throws IOException, ServletException { request.setAttribute("runTest", "testSizeTagNamePropertyMapNoScope"); SimpleBeanForTesting sbft = new SimpleBeanForTesting(); sbft.setMap(map);/* w w w .j av a 2 s.co m*/ pageContext.setAttribute(REQUEST_KEY, sbft, PageContext.APPLICATION_SCOPE); pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp"); }
From source file:org.apache.struts.taglib.bean.TestSizeTag.java
public void testSizeTagNamePropertyMapApplicationScope() throws IOException, ServletException { request.setAttribute("runTest", "testSizeTagNamePropertyMapApplicationScope"); SimpleBeanForTesting sbft = new SimpleBeanForTesting(); sbft.setMap(map);//from www .j av a 2 s .co m pageContext.setAttribute(REQUEST_KEY, sbft, PageContext.APPLICATION_SCOPE); pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp"); }