Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 25158 invoked from network); 29 Jan 2003 07:25:26 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 29 Jan 2003 07:25:26 -0000 Received: (qmail 19581 invoked by uid 97); 29 Jan 2003 07:27:01 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 19574 invoked from network); 29 Jan 2003 07:27:01 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 29 Jan 2003 07:27:01 -0000 Received: (qmail 23275 invoked by uid 500); 29 Jan 2003 07:24:59 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 23262 invoked from network); 29 Jan 2003 07:24:58 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 29 Jan 2003 07:24:58 -0000 Received: (qmail 25127 invoked by uid 1059); 29 Jan 2003 07:24:57 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 29 Jan 2003 07:24:57 -0000 Date: Tue, 28 Jan 2003 23:24:57 -0800 (PST) From: "Craig R. McClanahan" To: Tomcat Users List Subject: Re: tomcat authtentication In-Reply-To: <002001c2c718$1e6a7130$0300a8c0@attbi> Message-ID: <20030128143422.G7401@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Tue, 28 Jan 2003, mike danese wrote: > Date: Tue, 28 Jan 2003 13:56:31 -0800 > From: mike danese > Reply-To: Tomcat Users List > To: tomcat-user@jakarta.apache.org > Subject: tomcat authtentication > > Trying to get a handle on how tomcat &or tomcat-manager interact w/ InternetExplorer usr/passwd dialog box. > I know that setting tomcat/catalina/server xml config files can invoke the IE usr/pswd dialog box, but how > is the underlying code acomplishing it. Docs on apache/jakarta say "fix-me' on this issue. > Could anyone give an example of how to popup an IE/mozilla usr/pswd dialog from a jsp or a bean?? > Presuming that you've used BASIC as your , this will do the trick: response.sendError(HttpServletResponse.SC_UNAUTHORIZED); return; which is pretty much what Tomcat's authenticator does if you ask for a protected resource and have not logged in yet. For more information on how basic authentication works, see: http://www.rfc-editor.org/rfc/rfc2617.txt > thanksk md Craig --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org