Meaningless Drivel is fun!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes refering to Errata Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "refering to Errata" Watch "refering to Errata" New topic
Author

refering to Errata

Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 323

[833] Question 11;
Answers given are A,B,D,E,F
But, options B and F should not be correct.
- Only one instance of <auth-constraint> will exist within one <security-constraint> tag. The deployment descriptor DTD has the following definition for
<security-constraint> as per servlet spec is <!ELEMENT security-constraint (web-resource-collection+, auth-constraint?, user-data-constraint?)>
- This tag implies that authorization, data integrity and confidentiality security features are all declared for the wen application.
And not authentication. Authentication is declared using the <login-config> tag. As per the servlet spec - The login-config element is used to configure
the authentication method that should be used, the realm name that should be used for this application, and the attributes that are needed by the form login
mechanism. <!ELEMENT login-config (auth-method?, realm-name?, form-loginconfig?)>

This tag name is <form-login-congig> not <form-logincongig>
Please verify

Thanks


Thanks <br />Poonam Agarwal SCWCD 86%
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Poonam Agarwal wrote:
This tag name is <form-login-congig> not <form-logincongig>
Please verify


its none of them. Its form-login-config. And you could have verified this with a simple google query like this - form-login-config web.xml


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Or by looking at the spec. By the way, I think that you are looking at an old DTD, for servlets 2.3 maybe. Servlets 2.4 uses an XML Schema, which looks like :


[My Blog]
All roads lead to JavaRanch
Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 323
Ankit Garg wrote:
Poonam Agarwal wrote:
This tag name is <form-login-congig> not <form-logincongig>
Please verify


its none of them. Its form-login-config. And you could have verified this with a simple google query like this - form-login-config web.xml


Ankit that was just a typo.. nothing else.... anyways thanks
Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 323
I was refering a typo in Errata... nothing else.. May be I wasn't posted in a right way.
i know its not a valid tag <!ELEMENT login-config (auth-method?, realm-name?, form-loginconfig?)> <form-login-config> is the valid one




Thanks
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Poonam Agarwal wrote:Ankit that was just a typo.. nothing else.... anyways thanks


I know it was a typo. I was just trying to fit in a joke into the situation. I was not serious
Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 323
same here ankit... even I am not so serious

thanks for your reply anyways
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: refering to Errata
 
Similar Threads
DD entries for authentication
how many auth-constraint's per security-constraint
How authorization constraint effects authentication?
access control with realm db
HFSJ 2nd edition Mock exam questions 6, 11,26,34,49 and 69