aspose file tools*
The moose likes Servlets and the fly likes Small doubt..Servlets Naming Convention Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Small doubt..Servlets Naming Convention" Watch "Small doubt..Servlets Naming Convention" New topic
Author

Small doubt..Servlets Naming Convention

adithya kallu
Greenhorn

Joined: Nov 01, 2005
Posts: 23
I have a question regarding why all the servlets (or for any web api) is put in package starting with javaxjavax instead of regular java.*, does X signifies here something?? thanking you all
Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
Most of the times, every java technology starts as optional package to the standard JDK. Later when it get very matured, they will start bundling the optional component along with standard JDK. So my best guess is that, javax stands for Java Extension.
Jaime M. Tovar
Ranch Hand

Joined: Mar 28, 2005
Posts: 133
I also think that the x comes from extended, and javax packages began to exist to have a difference between the old classes and the newer ones, so you can support the two versions. As an example you have the awt and the swing packages.


She will remember your heart when men are fairy tales in books written by rabbits.<br /> As long as there is duct tape... there is also hope.
Rajesh Agarwal
Ranch Hand

Joined: Aug 01, 2005
Posts: 79
javax implies extended api's
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Its not a Servlet question. But you intelligently made use of word servlet and asked a general question. As far as I know most of the other packages, other then web api, starts with javax.

thanks.
siva kumar adabala
Greenhorn

Joined: Nov 03, 2005
Posts: 2
hi adithya kallu ,


Dont think only servlets contains the package names starts with "javax".From advanced java onwards,we should use the packages starts with "javax.<something>.*"

javax represents java extension.upto AWT we can treat them as "java" packages.

Upto AWT we can't say those r fully platform independent.bcoz all the core applications developed in C or C++ or someother native languages.so core applications have direct communication with OS.so sometimes it doesnot support for platform independence.
where as Advanced applications(we can say from Swings),developed in pure java.so these applications doesnot have direct interaction with the OS.thats y to develop webapplications ,we r using advanced apps.

check the "A Brief History of Swing " in the following link

http://java.sun.com/products/jfc/tsc/articles/getting_started/


regards,
-siva
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
Hi Siva,

Welcome to the ranch and thanks for the outstanding explanation about the javax packages. Just a quick reminder, please remember to use real words in your posts as opposed to "u r" and "bcoz". It makes your posts harder to read, especially if English is not your first language, or you use some type of visual impairment software. Thanks!


“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Small doubt..Servlets Naming Convention