This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

jstl exception lost when resin jsp is loaded

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic