Ask for a password from a ServletTag(s): Servlet/JSP
public void askPassword(HttpServletResponse response) {
response.setStatus(response.SC_UNAUTHORIZED);
response.setHeader("WWW-Authenticate",
"BASIC realm=\"protected-area\"");
}
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com