Normally, the exceptions are caught by the UNICOM® Digital Transformation Toolkit (UDTT™) channels. UDTT channels would put these exceptions into the attributes of "request.getAttribute(HtmlConstants.EXCEPTION)". So you could get the exception object through the key word "dse_exception" which is the value of "HtmlConstants.Exception".
But in some situations when UDTT are not capable of catching some errors or exceptions, these will be thrown into the http server or web server. For this kind of exceptions, the "request.getAttribute(HtmlConstants.EXCEPTION)" will return null. It will return the error code like 404 and 500.
Process
1 Configure Web.xml. You need to add the following code to web.xml:
▪ through one internal object exception which is like the request, response object in JSP. You could use the object directly without external declaration.
3 Notice that if you want to use the exception in your code, you need to
▪ tell the web server that this JSP page is an error page by setting the "isErrorPage" with true.<%@ page isErrorPage="true" %>