aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes A  question anoying me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "A  question anoying me" Watch "A  question anoying me" New topic
Author

A question anoying me

Lei Xiaowen
Greenhorn

Joined: Jul 11, 2005
Posts: 15
In form-based authentication, what must be included in the HTML returned from the URL specified by the <login-page> element?
A. a base-64 encoded user name and password
B. a form that POSTs to the j_security_check URL
C. an applet that requests the user name and password from the user
D. a hidden field that supplies the login-constraint used by the application

and why?
Leandro Melo
Ranch Hand

Joined: Mar 27, 2004
Posts: 401
Answer: a form that POSTs to the j_security_check

The URL specified as the login page must return a form with fields j_username and j_password. Adittionally, this form should POST to action="j_security_check".


Leandro Melo
SCJP 1.4, SCWCD 1.4
 
 
subject: A question anoying me