tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19491] New: - Jasper pooling option creates invalid java file
Date Wed, 30 Apr 2003 17:38:05 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19491>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19491

Jasper pooling option creates invalid java file

           Summary: Jasper pooling option creates invalid java file
           Product: Tomcat 4
           Version: 4.1.24
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper 2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: Robert_Flaherty@Hyperion.com


The code generated by Jasper via Tomcat vs. Ant won't compile.  The TEI 
defines a variable at the end.  The non-pooled compile correctly places the 
variable at the end of each tag.  The pooled compile places a single variable 
before the first tag.  I've included the JSP snippet and the pooled and non-
pooled code.

//JSP Snippet==================================================================
<%if (bChanged){%>
<waaolapdesign:useMemberTreeBean
	id="MemberTreeBean"
	scope="Session"
	style="<%=request.getParameter(PARAMETER_STYLE)%>"
	selStyle="<%=request.getParameter(PARAMETER_SELECTION_STYLE)%>"
	bandingRowCount="<%=request.getParameter(PARAMETER_BANDING_ROW_COUNT)%
>"
	allowItemCount="<%=request.getParameter(PARAMETER_ALLOW_COUNT) == 
null ? Boolean.FALSE.toString() : Boolean.TRUE.toString()%>"
	selectable="<%=request.getParameter(PARAMETER_ALLOW_SELECTION) == 
null ? Boolean.FALSE.toString() : Boolean.TRUE.toString()%>"
	allowSearch="<%=request.getParameter(PARAMETER_ALLOW_SEARCH) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString()%>"
	allowSort="<%=request.getParameter(PARAMETER_ALLOW_SORT) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString()%>"
	allowRowCountPerPage="<%=request.getParameter
(PARAMETER_ALLOW_ROWS_PER_PAGE) == null ? Boolean.FALSE.toString() : 
Boolean.TRUE.toString()%>"
	allowItemTreeOptions="<%=request.getParameter
(PARAMETER_ALLOW_TREE_OPTIONS) == null ? Boolean.FALSE.toString() : 
Boolean.TRUE.toString()%>"
	allowLines="<%=request.getParameter(PARAMETER_ALLOW_LINES) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString()%>"
	allowFilter="<%=request.getParameter(PARAMETER_ALLOW_FILTER) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString()%>"
	allowToggles="<%=request.getParameter(PARAMETER_ALLOW_TOGGLES) == 
null ? Boolean.FALSE.toString() : Boolean.TRUE.toString()%>"
	allowFilter="<%=request.getParameter(PARAMETER_ALLOW_FILTER) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString()%>"
	allowRelationship="<%=request.getParameter
(PARAMETER_ALLOW_RELATIONSHIP) == null ? Boolean.FALSE.toString() : 
Boolean.TRUE.toString()%>"
	allowAdvancedOptions="<%=request.getParameter
(PARAMETER_ALLOW_ADVANCED_OPTIONS) == null ? Boolean.FALSE.toString() : 
Boolean.TRUE.toString()%>"
	allowProperties="<%=request.getParameter(PARAMETER_ALLOW_PROPERTIES) 
== null ? Boolean.FALSE.toString() : Boolean.TRUE.toString()%>"
	allowEditing="<%=request.getParameter(PARAMETER_ALLOW_EDITING) == 
null ? Boolean.FALSE.toString() : Boolean.TRUE.toString()%>"
	allowMappedMembers="<%=request.getParameter
(PARAMETER_ALLOW_MAPPED_MEMBERS) == null ? Boolean.FALSE.toString() : 
Boolean.TRUE.toString()%>"
	flattened="<%=request.getParameter(PARAMETER_FLATTENED) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString()%>"
	render="false"
/>
<%}%>
<waaolapdesign:useMemberTreeBean id="MemberTreeBean" scope="Session" 
render="false" />
//============================================================================

//NonPooled===================================================================
            // begin 
[file="/jsp/waa/test/olap/TSTMemberTreeCustomization.jsp";from=(43,3);to=
(66,5)]
                /* ----  waaolapdesign:useMemberTreeBean ---- */
                com.hyperion.waa.web.olap.WAAUseMemberTreeBeanDesignTag 
_jspx_th_waaolapdesign_useMemberTreeBean_0 = new 
com.hyperion.waa.web.olap.WAAUseMemberTreeBeanDesignTag();
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setPageContext
(pageContext);
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setParent(null);
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setId
("MemberTreeBean");
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setScope("Session");
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setStyle
(request.getParameter(PARAMETER_STYLE));
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setSelStyle
(request.getParameter(PARAMETER_SELECTION_STYLE));
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setBandingRowCount
(request.getParameter(PARAMETER_BANDING_ROW_COUNT));
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowItemCount
(request.getParameter(PARAMETER_ALLOW_COUNT) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setSelectable
(request.getParameter(PARAMETER_ALLOW_SELECTION) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowSearch
(request.getParameter(PARAMETER_ALLOW_SEARCH) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowSort
(request.getParameter(PARAMETER_ALLOW_SORT) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
                
_jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowRowCountPerPage
(request.getParameter(PARAMETER_ALLOW_ROWS_PER_PAGE) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
                
_jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowItemTreeOptions
(request.getParameter(PARAMETER_ALLOW_TREE_OPTIONS) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowLines
(request.getParameter(PARAMETER_ALLOW_LINES) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowFilter
(request.getParameter(PARAMETER_ALLOW_FILTER) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowToggles
(request.getParameter(PARAMETER_ALLOW_TOGGLES) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowFilter
(request.getParameter(PARAMETER_ALLOW_FILTER) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowRelationship
(request.getParameter(PARAMETER_ALLOW_RELATIONSHIP) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
                
_jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowAdvancedOptions
(request.getParameter(PARAMETER_ALLOW_ADVANCED_OPTIONS) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowProperties
(request.getParameter(PARAMETER_ALLOW_PROPERTIES) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowEditing
(request.getParameter(PARAMETER_ALLOW_EDITING) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
                
_jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowMappedMembers
(request.getParameter(PARAMETER_ALLOW_MAPPED_MEMBERS) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setFlattened
(request.getParameter(PARAMETER_FLATTENED) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
                _jspx_th_waaolapdesign_useMemberTreeBean_0.setRender("false");
                com.hyperion.waa.web.olap.WAAMemberTreeBean MemberTreeBean = 
null;
                try {
                    int _jspx_eval_waaolapdesign_useMemberTreeBean_0 = 
_jspx_th_waaolapdesign_useMemberTreeBean_0.doStartTag();
                    MemberTreeBean = 
(com.hyperion.waa.web.olap.WAAMemberTreeBean) pageContext.findAttribute
("MemberTreeBean");
                    if (_jspx_eval_waaolapdesign_useMemberTreeBean_0 == 
javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)
                        throw new JspTagException("Since tag handler class 
com.hyperion.waa.web.olap.WAAUseMemberTreeBeanDesignTag does not implement 
BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
                    if (_jspx_eval_waaolapdesign_useMemberTreeBean_0 != 
javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        do {
                            MemberTreeBean = 
(com.hyperion.waa.web.olap.WAAMemberTreeBean) pageContext.findAttribute
("MemberTreeBean");
                        // end
                        // begin 
[file="/jsp/waa/test/olap/TSTMemberTreeCustomization.jsp";from=(43,3);to=
(66,5)]
                        } while 
(_jspx_th_waaolapdesign_useMemberTreeBean_0.doAfterBody() == 
javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
                        MemberTreeBean = 
(com.hyperion.waa.web.olap.WAAMemberTreeBean) pageContext.findAttribute
("MemberTreeBean");
                    }
                    if (_jspx_th_waaolapdesign_useMemberTreeBean_0.doEndTag() 
== javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                        return;
                } finally {
                    _jspx_th_waaolapdesign_useMemberTreeBean_0.release();
                }
            // end
            // HTML // begin 
[file="/jsp/waa/test/olap/TSTMemberTreeCustomization.jsp";from=(66,5);to=
(67,3)]
                out.write("\r\n\t\t\t");

            // end
            // begin 
[file="/jsp/waa/test/olap/TSTMemberTreeCustomization.jsp";from=(67,5);to=
(67,6)]
                }
            // end
            // HTML // begin 
[file="/jsp/waa/test/olap/TSTMemberTreeCustomization.jsp";from=(67,8);to=
(68,3)]
                out.write("\r\n\t\t\t");

            // end
            // begin 
[file="/jsp/waa/test/olap/TSTMemberTreeCustomization.jsp";from=(68,3);to=
(68,89)]
                /* ----  waaolapdesign:useMemberTreeBean ---- */
                com.hyperion.waa.web.olap.WAAUseMemberTreeBeanDesignTag 
_jspx_th_waaolapdesign_useMemberTreeBean_1 = new 
com.hyperion.waa.web.olap.WAAUseMemberTreeBeanDesignTag();
                _jspx_th_waaolapdesign_useMemberTreeBean_1.setPageContext
(pageContext);
                _jspx_th_waaolapdesign_useMemberTreeBean_1.setParent(null);
                _jspx_th_waaolapdesign_useMemberTreeBean_1.setId
("MemberTreeBean");
                _jspx_th_waaolapdesign_useMemberTreeBean_1.setScope("Session");
                _jspx_th_waaolapdesign_useMemberTreeBean_1.setRender("false");
                com.hyperion.waa.web.olap.WAAMemberTreeBean MemberTreeBean = 
null;
                try {
                    int _jspx_eval_waaolapdesign_useMemberTreeBean_1 = 
_jspx_th_waaolapdesign_useMemberTreeBean_1.doStartTag();
                    MemberTreeBean = 
(com.hyperion.waa.web.olap.WAAMemberTreeBean) pageContext.findAttribute
("MemberTreeBean");
                    if (_jspx_eval_waaolapdesign_useMemberTreeBean_1 == 
javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)
                        throw new JspTagException("Since tag handler class 
com.hyperion.waa.web.olap.WAAUseMemberTreeBeanDesignTag does not implement 
BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
                    if (_jspx_eval_waaolapdesign_useMemberTreeBean_1 != 
javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        do {
                            MemberTreeBean = 
(com.hyperion.waa.web.olap.WAAMemberTreeBean) pageContext.findAttribute
("MemberTreeBean");
                        // end
                        // begin 
[file="/jsp/waa/test/olap/TSTMemberTreeCustomization.jsp";from=(68,3);to=
(68,89)]
                        } while 
(_jspx_th_waaolapdesign_useMemberTreeBean_1.doAfterBody() == 
javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
                        MemberTreeBean = 
(com.hyperion.waa.web.olap.WAAMemberTreeBean) pageContext.findAttribute
("MemberTreeBean");
                    }
                    if (_jspx_th_waaolapdesign_useMemberTreeBean_1.doEndTag() 
== javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                        return;
                } finally {
                    _jspx_th_waaolapdesign_useMemberTreeBean_1.release();
                }
            // end
//============================================================================

//Pooled======================================================================
if (bChanged){
      out.write("\r\n\t\t\t");
      /* ----  waaolapdesign:useMemberTreeBean ---- */
      com.hyperion.waa.web.olap.WAAMemberTreeBean MemberTreeBean = null;
      com.hyperion.waa.web.olap.WAAUseMemberTreeBeanDesignTag 
_jspx_th_waaolapdesign_useMemberTreeBean_0 = 
(com.hyperion.waa.web.olap.WAAUseMemberTreeBeanDesignTag) 
_jspx_tagPool_waaolapdesign_useMemberTreeBean_style_selectable_selStyle_scope_r
ender_id_flattened_bandingRowCount_allowToggles_allowSort_allowSearch_allowRowC
ountPerPage_allowRelationship_allowProperties_allowMappedMembers_allowLines_all
owItemTreeOptions_allowItemCount_allowFilter_allowFilter_allowEditing_allowAdva
ncedOptions.get(com.hyperion.waa.web.olap.WAAUseMemberTreeBeanDesignTag.class);
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setPageContext(pageContext);
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setParent(null);
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setId("MemberTreeBean");
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setScope("Session");
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setStyle(request.getParameter
(PARAMETER_STYLE));
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setSelStyle
(request.getParameter(PARAMETER_SELECTION_STYLE));
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setBandingRowCount
(request.getParameter(PARAMETER_BANDING_ROW_COUNT));
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowItemCount
(request.getParameter(PARAMETER_ALLOW_COUNT) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setSelectable
(request.getParameter(PARAMETER_ALLOW_SELECTION) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowSearch
(request.getParameter(PARAMETER_ALLOW_SEARCH) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowSort
(request.getParameter(PARAMETER_ALLOW_SORT) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowRowCountPerPage
(request.getParameter(PARAMETER_ALLOW_ROWS_PER_PAGE) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowItemTreeOptions
(request.getParameter(PARAMETER_ALLOW_TREE_OPTIONS) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowLines
(request.getParameter(PARAMETER_ALLOW_LINES) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowFilter
(request.getParameter(PARAMETER_ALLOW_FILTER) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowToggles
(request.getParameter(PARAMETER_ALLOW_TOGGLES) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowFilter
(request.getParameter(PARAMETER_ALLOW_FILTER) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowRelationship
(request.getParameter(PARAMETER_ALLOW_RELATIONSHIP) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowAdvancedOptions
(request.getParameter(PARAMETER_ALLOW_ADVANCED_OPTIONS) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowProperties
(request.getParameter(PARAMETER_ALLOW_PROPERTIES) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowEditing
(request.getParameter(PARAMETER_ALLOW_EDITING) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setAllowMappedMembers
(request.getParameter(PARAMETER_ALLOW_MAPPED_MEMBERS) == null ? 
Boolean.FALSE.toString() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setFlattened
(request.getParameter(PARAMETER_FLATTENED) == null ? Boolean.FALSE.toString
() : Boolean.TRUE.toString());
      _jspx_th_waaolapdesign_useMemberTreeBean_0.setRender("false");
      int _jspx_eval_waaolapdesign_useMemberTreeBean_0 = 
_jspx_th_waaolapdesign_useMemberTreeBean_0.doStartTag();
      MemberTreeBean = (com.hyperion.waa.web.olap.WAAMemberTreeBean) 
pageContext.findAttribute("MemberTreeBean");
      if (_jspx_th_waaolapdesign_useMemberTreeBean_0.doEndTag() == 
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      MemberTreeBean = (com.hyperion.waa.web.olap.WAAMemberTreeBean) 
pageContext.findAttribute("MemberTreeBean");
      
_jspx_tagPool_waaolapdesign_useMemberTreeBean_style_selectable_selStyle_scope_r
ender_id_flattened_bandingRowCount_allowToggles_allowSort_allowSearch_allowRowC
ountPerPage_allowRelationship_allowProperties_allowMappedMembers_allowLines_all
owItemTreeOptions_allowItemCount_allowFilter_allowFilter_allowEditing_allowAdva
ncedOptions.reuse(_jspx_th_waaolapdesign_useMemberTreeBean_0);
      out.write("\r\n\t\t\t");
}
      out.write("\r\n\t\t\t");
      /* ----  waaolapdesign:useMemberTreeBean ---- */
      com.hyperion.waa.web.olap.WAAUseMemberTreeBeanDesignTag 
_jspx_th_waaolapdesign_useMemberTreeBean_1 = 
(com.hyperion.waa.web.olap.WAAUseMemberTreeBeanDesignTag) 
_jspx_tagPool_waaolapdesign_useMemberTreeBean_scope_render_id.get
(com.hyperion.waa.web.olap.WAAUseMemberTreeBeanDesignTag.class);
      _jspx_th_waaolapdesign_useMemberTreeBean_1.setPageContext(pageContext);
      _jspx_th_waaolapdesign_useMemberTreeBean_1.setParent(null);
      _jspx_th_waaolapdesign_useMemberTreeBean_1.setId("MemberTreeBean");
      _jspx_th_waaolapdesign_useMemberTreeBean_1.setScope("Session");
      _jspx_th_waaolapdesign_useMemberTreeBean_1.setRender("false");
      int _jspx_eval_waaolapdesign_useMemberTreeBean_1 = 
_jspx_th_waaolapdesign_useMemberTreeBean_1.doStartTag();
      MemberTreeBean = (com.hyperion.waa.web.olap.WAAMemberTreeBean) 
pageContext.findAttribute("MemberTreeBean");
      if (_jspx_th_waaolapdesign_useMemberTreeBean_1.doEndTag() == 
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      MemberTreeBean = (com.hyperion.waa.web.olap.WAAMemberTreeBean) 
pageContext.findAttribute("MemberTreeBean");
      _jspx_tagPool_waaolapdesign_useMemberTreeBean_scope_render_id.reuse
(_jspx_th_waaolapdesign_useMemberTreeBean_1);
//============================================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message