📄 testsizetag.java
字号:
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNameCollectionSessionScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNameCollectionRequestScope() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNameCollectionRequestScope");
pageContext.setAttribute(REQUEST_KEY, collection, PageContext.REQUEST_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNameCollectionRequestScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyCollectionNoScope() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyCollectionNoScope");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
sbft.setCollection(collection);
pageContext.setAttribute(REQUEST_KEY, sbft, PageContext.APPLICATION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyCollectionNoScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyCollectionApplicationScope() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyCollectionApplicationScope");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
sbft.setCollection(collection);
pageContext.setAttribute(REQUEST_KEY, sbft, PageContext.APPLICATION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyCollectionApplicationScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyCollectionSessionScope() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyCollectionSessionScope");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
sbft.setCollection(collection);
pageContext.setAttribute(REQUEST_KEY, sbft, PageContext.SESSION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyCollectionSessionScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyCollectionRequestScope() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyCollectionRequestScope");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
sbft.setCollection(collection);
pageContext.setAttribute(REQUEST_KEY, sbft, PageContext.REQUEST_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyCollectionRequestScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyCollectionNoScopeNested() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyCollectionNoScopeNested");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
SimpleBeanForTesting sbft2 = new SimpleBeanForTesting();
sbft.setCollection(collection);
sbft2.setNestedObject(sbft);
pageContext.setAttribute(REQUEST_KEY, sbft2, PageContext.APPLICATION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyCollectionNoScopeNested(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyCollectionApplicationScopeNested() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyCollectionApplicationScopeNested");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
SimpleBeanForTesting sbft2 = new SimpleBeanForTesting();
sbft.setCollection(collection);
sbft2.setNestedObject(sbft);
pageContext.setAttribute(REQUEST_KEY, sbft2, PageContext.APPLICATION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyCollectionApplicationScopeNested(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyCollectionSessionScopeNested() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyCollectionSessionScopeNested");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
SimpleBeanForTesting sbft2 = new SimpleBeanForTesting();
sbft.setCollection(collection);
sbft2.setNestedObject(sbft);
pageContext.setAttribute(REQUEST_KEY, sbft2, PageContext.SESSION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyCollectionSessionScopeNested(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyCollectionRequestScopeNested() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyCollectionRequestScopeNested");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
SimpleBeanForTesting sbft2 = new SimpleBeanForTesting();
sbft.setCollection(collection);
sbft2.setNestedObject(sbft);
pageContext.setAttribute(REQUEST_KEY, sbft2, PageContext.REQUEST_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyCollectionRequestScopeNested(WebResponse response){
formatAndTest("3", response.getText());
}
// Map
public void testSizeTagNameMapNoScope() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNameMapNoScope");
request.setAttribute(REQUEST_KEY, map);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNameMapNoScope(WebResponse response){
formatAndTest("3", response.getText());
}
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");
}
public void endSizeTagNameMapApplicationScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNameMapSessionScope() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNameMapSessionScope");
pageContext.setAttribute(REQUEST_KEY, map, PageContext.SESSION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNameMapSessionScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNameMapRequestScope() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNameMapRequestScope");
pageContext.setAttribute(REQUEST_KEY, map, PageContext.REQUEST_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNameMapRequestScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyMapNoScope() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyMapNoScope");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
sbft.setMap(map);
pageContext.setAttribute(REQUEST_KEY, sbft, PageContext.APPLICATION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyMapNoScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyMapApplicationScope() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyMapApplicationScope");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
sbft.setMap(map);
pageContext.setAttribute(REQUEST_KEY, sbft, PageContext.APPLICATION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyMapApplicationScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyMapSessionScope() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyMapSessionScope");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
sbft.setMap(map);
pageContext.setAttribute(REQUEST_KEY, sbft, PageContext.SESSION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyMapSessionScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyMapRequestScope() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyMapRequestScope");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
sbft.setMap(map);
pageContext.setAttribute(REQUEST_KEY, sbft, PageContext.REQUEST_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyMapRequestScope(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyMapNoScopeNested() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyMapNoScopeNested");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
SimpleBeanForTesting sbft2 = new SimpleBeanForTesting();
sbft.setMap(map);
sbft2.setNestedObject(sbft);
pageContext.setAttribute(REQUEST_KEY, sbft2, PageContext.APPLICATION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyMapNoScopeNested(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyMapApplicationScopeNested() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyMapApplicationScopeNested");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
SimpleBeanForTesting sbft2 = new SimpleBeanForTesting();
sbft.setMap(map);
sbft2.setNestedObject(sbft);
pageContext.setAttribute(REQUEST_KEY, sbft2, PageContext.APPLICATION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyMapApplicationScopeNested(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyMapSessionScopeNested() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyMapSessionScopeNested");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
SimpleBeanForTesting sbft2 = new SimpleBeanForTesting();
sbft.setMap(map);
sbft2.setNestedObject(sbft);
pageContext.setAttribute(REQUEST_KEY, sbft2, PageContext.SESSION_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyMapSessionScopeNested(WebResponse response){
formatAndTest("3", response.getText());
}
public void testSizeTagNamePropertyMapRequestScopeNested() throws IOException, ServletException{
request.setAttribute("runTest", "testSizeTagNamePropertyMapRequestScopeNested");
SimpleBeanForTesting sbft = new SimpleBeanForTesting();
SimpleBeanForTesting sbft2 = new SimpleBeanForTesting();
sbft.setMap(map);
sbft2.setNestedObject(sbft);
pageContext.setAttribute(REQUEST_KEY, sbft2, PageContext.REQUEST_SCOPE);
pageContext.forward("/test/org/apache/struts/taglib/bean/TestSizeTag.jsp");
}
public void endSizeTagNamePropertyMapRequestScopeNested(WebResponse response){
formatAndTest("3", response.getText());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -