Java Struts – Handle HTTP 404 Error

Java Struts 404 Error Page Example

The “HTTP Status 404” error code shows that the system can not find the page or resource you requested. In practice, you should display your custom 404 error page. However, it is handle in web.xml , not in Struts framework. For example,

When system hit the 404 error, it will forward to your custom 404 error page “/pages/error404.jsp“.


Share This Post On: