Hi, Is it possible to put all the servlets in a jar file and then access them for throwing response to the client. If yes, how? If no, why not? Please let me know the details. Thanks and Regards, vishal.
Sun's recommended deployment scheme for servlets is a "war" - or "Web ARchive" file - which is simply a jar with the file extension changed to "war". Once it's on the server, some servers may unpack the jar, but that's really just an internal quirl of the server. Within the WAR file, the servlets classes are placed in the WEB-INF/classes directory. If they were already in a jar, the jar would be placed in the WEB-INF/lib directory.
An IDE is no substitute for an Intelligent Developer.