aspose file tools
The moose likes Servlets and the fly likes servlets zip or jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets zip or jar file" Watch "servlets zip or jar file" New topic

servlets zip or jar file

shivanath yerra

Joined: Jan 17, 2002
Posts: 14
can we archive all the sevlets into a jar file and keep it in the web-inf directory instead of
placing all the classes.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12912
The servlet API describes all the rules that cover this sort of question - you should download a copy from
The answer is yes, classes in a jar file in the
directory will be picked up just like the individual class files in
directory would. It does have to be type ".jar" - ".zip" will not work.
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
Javaranch has an official naming policy. Please read that policy and change your display name to a name that conforms. We would like you to be able to continue posting here at Javaranch. Thank you.

Matthew Phillips
I agree. Here's the link:
subject: servlets zip or jar file