Multiple choice technology security

In a J2EE web application Error page is defined in

  1. Server.xml

  2. config.xml

  3. web.xml

  4. application.properties

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In J2EE web applications, the web.xml deployment descriptor file defines application-wide configurations including error pages. You specify error pages using elements that map exception types or HTTP error codes to custom display pages. Server.xml (A) is for server-level configuration in Tomcat, config.xml (B) is not a standard J2EE config file, and application.properties (D) is typically used for application-specific settings, not servlet container configurations.

AI explanation

In a J2EE web application, custom error pages are configured in the deployment descriptor web.xml using `elements, which map HTTP status codes or exception types to specific pages.web.xmlis the standard place for servlet container configuration like this, unlikeserver.xml(container/server-level config) orapplication.properties` (a Spring Boot convention, not classic J2EE).