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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets zip or jar file" Watch "servlets zip or jar file" New topic
Author

servlets zip or jar file

shivanath yerra
Greenhorn

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

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

Joined: Mar 09, 2001
Posts: 2676
Shiva,
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: http://aspose.com/file-tools
 
subject: servlets zip or jar file