wood burning stoves 2.0*
The moose likes Servlets and the fly likes Can we jar the servlets and still use them Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can we jar the servlets and still use them" Watch "Can we jar the servlets and still use them" New topic
Author

Can we jar the servlets and still use them

vishal goyal
Greenhorn

Joined: Aug 13, 2001
Posts: 12
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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can we jar the servlets and still use them
 
Similar Threads
servlets in jar
JML (java modeling languge): how to verify servlets with JML
library directory
Servlets in JAR files
library directory