Hi, I have a few question: 1) When we set header for "WWW-Authenticate" does "BASIC realm" carry any specifici meaning? Does it mean the particular scope that the authentication is allowed access? 2) I noticed that some sources have import javax.servlet.*; import javax.servlet.http.*; both. Doesn't javax.servlet.* include javax.servlet.http.* also? Thanks in advance!
posted 15 years ago
Bob Moranski wrote: Doesn't javax.servlet.* include javax.servlet.http.* also? No. This is part of the basic java import syntax. the "import package.*" is only a shortcut for all the class files in that particular package (imagine that the * is a wildcard which doesn't match the "." character). This is actually one of the better features of the import mechanism, imagine what would happen if lazy programmers could just do "import java.*", or even worse: "import *" !!