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: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>