How to create a authentication popup like this in a browser?
<p><a href="http://i.stack.imgur.com/TtNDe.png" rel="nofollow">Popup in an application to authenticate the user</a></p>

<p>I need to develop an application and authenticate users who login to the application. I need to trigger a popup like this (image attached) and configure to xxx server for validation. 
I need to develop the application in JSP,Spring MVC with hibernate.</p>

<p>Right now I'm running the application in localhost. </p>