I have a
jsp page using the JSTL. This jsp contains the following lines:
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@page errorPage="/wsglobal/content/exceptions.jsp"%>
<html>
<body>
this is the price
<jsp:useBean id="packageBean" class="com.adt.beans.PackagesBean"/>
<c:set target="${packageBean}" property="id" value="3"/>
<c:set var="pkg" value="${packageBean.packageByID}"/>
price: <c
ut value="${pkg.price}"/>
</body>
</html>
The ${packageBean.packageByID} value calls the "packageBean.getPackageByID()" method. I have this method throw a NullPointerException.
When the jsp is displayed, it draws the page properly. However, under Websphere, I get an error page which is what I expect to get. It appears that Resin is "eating" the exception.
This isn't the behavior we'd like. We'd like the error page to be displayed when an exception is thrown by the bean. We are using Resin 2.1.10. Has anyone seen behavior like this?
Thanks,
Moshe Shmia
mshmia@adt.com