In order to give the viewer a friendly error prompt page, we can customize the error page as IIS;
Proceed as follows:
First, open the web.xml file under the web-INF folder;
Second, adding new:
'' 404 page does not exist errors
404 ERROR-CODE>
/ errorpage404.htm location>
Error-Page>
'' 505 server internal error
505 ERROR-CODE>
/ errorpage505.htm location>
Error-Page>
'' java.lang.numberformatexception error, according to this tag, you can define a lot, you can any fire:)! @
java.lang.numberformatexception exception-type>
/exception.htm location>
Error-Page>
Third, save the web.xml file, the reload service is OK!
Good luck !!