GiventhisfragmentfromaJavaEEdeploymentdescriptor:341.error-page342.exception-typejava.lang.Throwable/exception-type343.location/mainError.jsp/location344./error-page345.error-page346.exception-typejava.lang.ClassCastException/exception-type347.location/castError.jsp/location348./error-pageIfthewebapplicationassociatedwiththefragmentabovethrowsaClassCastException.Whichstatementistrue?()A.Thedeploymentdescriptorisinvalid.B.ThecontainerinvokesmainError.jsp.C.ThecontainerinvokescastError.jsp.D.NeithermainError.jspnorcastError.jspisinvoked.

GiventhisfragmentfromaJavaEEdeploymentdescriptor:341.<error-page>342.<exception-type>java.lang.Throwable</exception-type>343.<location>/mainError.jsp</location>344.</error-page>345.<error-page>346.<exception-type>java.lang.ClassCastException</exception-type>347.<location>/castError.jsp</location>348.</error-page>IfthewebapplicationassociatedwiththefragmentabovethrowsaClassCastException.Whichstatementistrue?()

A.Thedeploymentdescriptorisinvalid.

B.ThecontainerinvokesmainError.jsp.

C.ThecontainerinvokescastError.jsp.

D.NeithermainError.jspnorcastError.jspisinvoked.


相关考题:

GiventhisfragmentfromaJavaEEdeploymentdescriptor:124.welcome-filebeta.html/welcome-file125.welcome-filealpha.html/welcome-fileAndthisrequestfromabrowser:http://www.sun.com/SCWCDtestApp/registerWhichstatementiscorrect,whenthecontainerreceivesthisrequest?()A.ThisdeploymentdescriptorisNOTvalid.B.Thecontainerfirstlooksintheregisterdirectoryforbeta.html.C.Thecontainerfirstlooksintheregisterdirectoryforalpha.html.D.Thecontainerfirstlooksforaservletmappinginthedeploymentdescriptor.