JSP Custom Error Page

xiaoxiao2021-03-06  32

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

/ errorpage404.htm

'' 505 server internal error

505

/ errorpage505.htm

'' java.lang.numberformatexception error, according to this tag, you can define a lot, you can any fire:)! @

java.lang.numberformatexception

/exception.htm

Third, save the web.xml file, the reload service is OK!

Good luck !!

转载请注明原文地址:https://www.9cbs.com/read-79612.html

New Post(0)