Hi,
Expressing my opinion on this.Probably it would not make any sense to you.In that case, you may ignore my reply Taking the Java
Servlet API Packages viz.
javax.servlet and
javax.servlet.http as an example.
I assume that the Java API developers would have developed a top level package which might be requirement specific.For example, they would have thought, let us have a top-level package, which is generic for all protocols - name it as
javax.servlet!!Once this is done, they would have decided to put all the Generic classes in it.These Generic classes may have been derived out of the Use Cases.
Later they would have had one more requirement on supporting the HTTP protocol.So again, they decided to name a top-level package, this time -
javax.servlet.http!!All the HTTP specific classes (which again would have been derived out of the Use Cases), would go in this package.
Keeping the above approach in view, I assume they would not have been bothered much with the dependencies across packages, as long as they could define the dependency using the package names.
Hence, instead of saying
javax.servlet.http.HttpServletResponse is the
Http-implementation of
javax.servlet.ServletResponse, we can now say
javax.servlet.http package is the
Http-implementation of
javax.servlet package.
Hope I have not confused you
Regards,
Sandeep Desai vgdesai@bom3.vsnl.net.in
- Sun Certified Java Programmer Scored 93 per cent
- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
- IBM Enterprise Connectivity with J2EE Scored 72 per cent
- Enterprise Development on the Oracle Internet Platform Scored 44 out of 56
[This message has been edited by Desai Sandeep (edited April 23, 2001).]