网友您好, 请在下方输入框内输入要搜索的题目:
Giventhisfragmentinaservlet:23.if(req.isUserInRole("Admin")){24.//dostuff25.}AndthefollowingfragmentfromtherelatedJavaEEdeploymentdescriptor:812.<security-role-ref>813.<role-name>Admin</role-name>814.<role-link>Administrator</role-link>815.</security-role-ref>900.<security-role>901.<role-name>Admin</role-name>902.<role-name>Administrator</role-name>903.</security-role>Whatistheresult?()
A.Line24canneverbereached.
B.ThedeploymentdescriptorisNOTvalid.
C.Ifline24executes,theuser’srolewillbeAdmin.
D.Ifline24executes,theuser’srolewillbeAdministrator.
E.Ifline24executestheuser’srolewillNOTbepredictable.
参考答案