title: How to put browser's native login prompt in JSP and retrieve the username & password
body: <p>I want the web browser to ask for username and password using it's default login prompt like this.<br/><br/>
  <img src="https://i.stack.imgur.com/CkAX5.png" alt="Firefox Login Prompt"><br/>
  I read about how to implement it <a href="http://blog.stevensanderson.com/2008/08/25/using-the-browsers-native-login-prompt/" rel="nofollow noreferrer">here</a> but it is for ASP. I want it done in JSP or servlet and I also want to know that how will I receive those username and password in my servlet</p>