This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes security question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "security question" Watch "security question" New topic
Author

security question

Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
This question is from Acutaltest.com

In a form-based authentication, what must be included in the HTML retrun from the URL specified by the <login-page> element?

A. a base-64 encoded user name and password
B. a form that POSTs to that 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

Please answer it ..Actually I didn't uderstood the question also..


SCJP 5 |SCWCD 5| Started thinking about Web Services ?
Tony romer
Ranch Hand

Joined: Jul 21, 2008
Posts: 32
Answer is b. You have to declare action in this way if you use FORM based authentication.
Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
Is j_security_check is manditory for form based authentication..
I have studied HFSJ but didn't find ..
Tony romer
Ranch Hand

Joined: Jul 21, 2008
Posts: 32
Yes it is,
if you do not say this as an action,
then form based authentication is not triggered.
I did not study that book but you can google form based authentication and see some examples.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: security question