GlassFish samples: https://glassfish-samples.dev.java.net/ With basic authentication of a servlet, the web browser presents a standard login dialog that is not .