DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=27762>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27762 Including Tagfiles Makes Includes Fail to Include Summary: Including Tagfiles Makes Includes Fail to Include Product: Tomcat 5 Version: 5.0.18 Platform: Other OS/Version: Linux Status: NEW Severity: Major Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If a page has a tagfile, even if the tag file is blank, then <%@ include file="foo.jsp" %> will fail to include any content and fail to give any error. The main page: ----------------------------------------------------------- <%@ page language="java" %> <%@ taglib prefix="x" tagdir="/WEB-INF/tags/xhtml" %> <x:stuff/> <%@ include file="/WEB-INF/include.jsp" %> ----------------------------------------------------------- The stuff taglib (empty on purpose): ----------------------------------------------------------- <%@ tag body-content="empty" %> ----------------------------------------------------------- The included file contents: ----------------------------------------------------------- Hello from include ----------------------------------------------------------- The generated code: ----------------------------------------------------------- out.write('\n'); out.write('\n'); out.write('\n'); if (_jspx_meth_x_stuff_0(pageContext)) return; out.write('\n'); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(t); } } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); } ----------------------------------------------------------- Notice how there is no "Hello from include" Now, if we comment out the tag file like so: ----------------------------------------------------------- <%@ page language="java" %> <%@ taglib prefix="x" tagdir="/WEB-INF/tags/xhtml" %> <!--x:stuff/--> <%@ include file="/WEB-INF/include.jsp" %> ----------------------------------------------------------- We get the included file in the generated source: ----------------------------------------------------------- out.write("\n\n\n<!--x:stuff/-->\n"); out.write("Hello from include"); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ ----------------------------------------------------------- Am I missing some assumption or is this a bug? Thanks! Seth --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]