Howdy,

>   <error-page>
>      <exception-type>javax.servlet.ServletException</exception-type>
>      <location>/WEB-INF/jsp/exceptions/ServletException.jsp</location>
>   </error-page>
>
>(in the appropriate place, at the bottom just above </web-app>)
>
>When this code executes:
>   if ( report == null || report.equals( "" ) ) {
>      log.debug( "doGet: no data!  Need to forward to an error page."
);
>      throw new ServletException( "No data found in HOLD file" );
>   }
>
>I _still_ get this in the browser:
>
>type Exception report
>message
>description The server encountered an internal error () that prevented
>it from fulfilling this request.
>exception
>javax.servlet.ServletException: No data found in HOLD file
>       at edu.asu.vpia.webapp.PDFServlet.doGet(PDFServlet.java:94)

Hmm.  Does the error page say Tomcat on it, or is it the IE error page?
I guess the former, but still need to ask.  Was the root cause that you
chopped off the above stack trace also a ServletException, or something
else?

>Yansheng Lin suggested using Struts declarative exception handling, but
>this is a plain-old Servlet, not a Struts Action.

Yeah, that suggestion wasn't relevant.

>What am I missing, why do I get a Tomcat-generated error page and not
>the JSP I specified?

Are you sure you're not catching the exception somewhere in your webapp
and rethrowing it at something else?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to