File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlets zip or jar file

 
shivanath yerra
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2676
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic