Java's packages are not hierarchical - the package javax.servlet.http is not a subpackage of javax.servlet. In fact, the notion of "subpackages" doesn't exist at all, even though it's easy to assume so because of the directory structure.
You should the packages javax.servlet and javax.servlet.http are two totally separate packages that happen to have a name that starts with the same prefix.