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
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply 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 <br />SCJP 1.4, SCWCD 1.4<br /><a href="http://www.pazbrasil.org/" target="_blank" rel="nofollow">http://www.pazbrasil.org/</a>
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: A question anoying me
 
Similar Threads
login servlet
How data stored in Database
security question
Login Servlet
Login Window in Html page Apache style