Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

login-config : no mandatory sub element

 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I surprised to note that <login-config> element in web.xml does not have any mandatory sub element. Now my question is if I don't specify the sub element <auth-method> how does the container authenticate the request?
 
Mahesh Desai
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

All the three subelements of <login-config> (<auth-method> , <realm-name> & <form-login- config> are optional. If subelement <auth-method> is not included, the server defaults to HTTP Basic Authentication.

Thanks,
Mahesh

---------
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, (SCEA Part I preparing......)
 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mahesh. Could you tell me the page number of the specification where will I get this information?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tridib,

You can look at the DTD definition for the login-config element and you can get this from the Mikalai Zaikins notes for SCWCD!
 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jothi,
I am not sure if there are any DTD for Servlet 2.4. Could you send me the exact URL or page no. of any document that explains what happen when you don't specify the sub-elements of <login-config>?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tridib,

Page 68 of Mikalai Zaikin's notes speak about the DTD. But I'm not sure if it also explains why!
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't find anything about the default behaviour of login-config either
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic