This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes login-config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "login-config" Watch "login-config" New topic
Author

login-config

Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
1
<web-app>
<login-config>
<realm-name>manager</realm-name>
</login-config>
</web-app>
2
<web-app>
<login-config>
<form-login-config>
<form-login-page>/etc/login.jsp</form-login-page>
<form-error-page>/etc/login-error.jsp</form-error-page>
</form-login-config>
</login-config>
</web-app>
are the 1 and 2 right?


SCJP<br />SCWCD<br />SCEA
Maha Annadurai
Ranch Hand

Joined: Oct 27, 2002
Posts: 87
This is interesting. At first when I saw this post, I was thinking (wrongly ) ... hmmm this one needs a mandatory <auth-method> so this code will not work like that.
Then I looked into the Servlet 2.3 DTD, and realized that all 3 sub-elements (auth-method, realm-name, form-login-config) are optional. (0 /1)
Then I ran some tests with Tomcat and found that the container starts ok. It does not wine about the web.xml. But when I try to invoke even index.html under the context root, it gives me 404 error.
Regards,
Maha Anna
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: login-config
 
Similar Threads
Unable to apply security
login-config question
Question about login-config
DD entries for authentication
mock test question