This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Servlets and the fly likes BASIC realm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "BASIC realm" Watch "BASIC realm" New topic

BASIC realm

Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
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

Joined: Jan 07, 1999
Posts: 6920
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 *" !!

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
wood burning stoves
subject: BASIC realm
It's not a secret anymore!