示例#1
0
 private boolean _jspx_meth_s_005furl_005f5(javax.servlet.jsp.PageContext _jspx_page_context)
     throws java.lang.Throwable {
   javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
   javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
   //  s:url
   org.apache.struts2.views.jsp.URLTag _jspx_th_s_005furl_005f5 =
       (org.apache.struts2.views.jsp.URLTag)
           _005fjspx_005ftagPool_005fs_005furl_0026_005fvar_005fnamespace_005faction_005fnobody
               .get(org.apache.struts2.views.jsp.URLTag.class);
   _jspx_th_s_005furl_005f5.setPageContext(_jspx_page_context);
   _jspx_th_s_005furl_005f5.setParent(null);
   // /views/template/sidebar/managerSidebar.jsp(25,12) name = action type = java.lang.String
   // reqTime = false required = false fragment = false deferredValue = false expectedTypeName =
   // null deferredMethod = false methodSignature = null
   _jspx_th_s_005furl_005f5.setAction("memberRegister");
   // /views/template/sidebar/managerSidebar.jsp(25,12) name = namespace type = java.lang.String
   // reqTime = false required = false fragment = false deferredValue = false expectedTypeName =
   // null deferredMethod = false methodSignature = null
   _jspx_th_s_005furl_005f5.setNamespace("/manager");
   // /views/template/sidebar/managerSidebar.jsp(25,12) name = var type = java.lang.String reqTime
   // = false required = false fragment = false deferredValue = false expectedTypeName = null
   // deferredMethod = false methodSignature = null
   _jspx_th_s_005furl_005f5.setVar("memberRegister");
   int _jspx_eval_s_005furl_005f5 = _jspx_th_s_005furl_005f5.doStartTag();
   if (_jspx_th_s_005furl_005f5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
     _005fjspx_005ftagPool_005fs_005furl_0026_005fvar_005fnamespace_005faction_005fnobody.reuse(
         _jspx_th_s_005furl_005f5);
     return true;
   }
   _005fjspx_005ftagPool_005fs_005furl_0026_005fvar_005fnamespace_005faction_005fnobody.reuse(
       _jspx_th_s_005furl_005f5);
   return false;
 }
示例#2
0
  // URL
  public void testURLComponentDisposeItselfFromComponentStack() throws Exception {
    TextFieldTag t = new TextFieldTag();
    t.setPageContext(pageContext);
    t.setName("textFieldName");

    URLTag tag = new URLTag();
    tag.setPageContext(pageContext);

    try {
      t.doStartTag();
      tag.doStartTag();
      assertEquals(tag.getComponent().getComponentStack().peek(), tag.getComponent());
      tag.doEndTag();
      assertEquals(t.getComponent().getComponentStack().peek(), t.getComponent());
      t.doEndTag();
    } catch (Exception e) {
      e.printStackTrace();
      fail(e.toString());
    }
  }