Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

refering to Errata

 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[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
 
Sheriff
Posts: 9671
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 :
 
Poonam Agarwal
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9671
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
same here ankit... even I am not so serious

thanks for your reply anyways
 
What are you saying? I thought you said that Santa gave you that. And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic