• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BASIC realm

 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 *" !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic