I'm answering some questions, from JWebPlus mock exam, and some of the answers I don't agree...
1. Questin ID: 1079622431618
A web.xml for a web application contains the following:
<login-config> <auth-method>BASIC</auth-method> <realm-name>sales</realm-name> <form-login-config> <form-login-page>/formlogin.html</form-login-page> <form-error-page>/formerror.html</form-error-page> </form-login-config> </login-config> What should formlogin.html contain?
A.A base 64 encoded username and password. B.A header that prompts the browser to pop up th username/password dialog. C.A form that POSTs to j_security_check url. D.Any html page that does not require the user to login. E.Code to redirect the user to the login page.
The correct answer was C, it's really OK?? My answer was A, because letter C shoul be if the method was FORM... Am I right?