What is the function of <login-config> in the web.xml file? I suppose it asks the visitors to give username and password to log in and then visitors can start navigating the web site. Is it right?
I checked the
Servlet specification and noticed that we can specify <auth-method> and <realm-name> inside the <login-config> tag.
1. How do we use the <auth-method>?
2. Must there be a real method somewhere in the application to match what is in the <auth-method> tag?
3. How do we specify <realm-name>? Can we simply give any name?
4. If the <login-config> does ask username and password for visitors to log in, where do we put valid username and password?
5. Where is the most convenient place to put one pair of username and password for the developer to
test the development version of the application (not production version)?
Simply take the following code for example:
Sorry for dumping so many questions. Thank you in advance.
[ September 18, 2003: Message edited by: JiaPei Jen ]