You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by to...@jablko.ca on 2002/07/16 22:33:34 UTC
BodyContent, including files and error handling
I am trying to include a JSP which generates runtime errors - for now - in another JSP. I would like to know why,
<c:set var="someVar">
<jsp:include page="/some-page.jsp"/>
</c:set>
produces a tomcat error page correctly identifying the error in the included page, but
<%
BodyContent body = pageContext.pushBody();
pageContext.include("/some-page.jsp");
pageContext.popBody();
String someVar = body.getString();
%>
or
<%
BodyContent body = pageContext.pushBody();
%>
<jsp:include page="/some-page.jsp"/>
<%
pageContext.popBody();
String someVar = body.getString();
%>
produce a tomcat error page reporting a BodyContentImpl ClassCastException. It would be useful to know what errors the included page is generating without having to use the JSTL. Thanks,
Jack
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>