aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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: 16145
    
  21

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.
 
jQuery in Action, 2nd edition
 
subject: Can we jar the servlets and still use them