No. Another difference is that you don't use a realm. Another difference is that you'll be redirected to an error page if you fail to login. You should read the details at SRV.12.5.3 Form Based Authentication of the Servlet specification.
18. login-config Element The realm-name indicates the realm name to use in HTTP BASIC authentication. [ July 12, 2007: Message edited by: Christophe Verre ]