*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes login-config element in DD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "login-config element in DD" Watch "login-config element in DD" New topic
Author

login-config element in DD

Deb Sadhukhan
Ranch Hand

Joined: Nov 05, 2003
Posts: 67
login-config doesn't have mandatory sub-elements.
What is the use of it? Is it true having <login-config/> in DD will make the entire app. inaccessible by anybody?
[ February 11, 2005: Message edited by: Deb Sadhukhan ]

_ __ _ __ _ __ _<br />SCJP 1.4 (95%) | SCWCD 1.4 (79%)<br />Artificial intelligence is no match for natural stupidity.
Rodrigo W Bonatto
Ranch Hand

Joined: Aug 20, 2004
Posts: 62
Hi,

If you define a <security-constraint> element, you must define a <login-config> element, otherwise the container will throw a NullPointerException (in Tomcat 5.0.28).

I don't know if it depends of container implementation or if it is the default behaviour.

Regards,

Rodrigo


SCJA, SCJP, SCJD, SCWCD, SCBCD5, SCDJWS, SCEA5
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: login-config element in DD