File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes servlet in both WEB-INF/lib and WEB-INF/classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "servlet in both WEB-INF/lib and WEB-INF/classes" Watch "servlet in both WEB-INF/lib and WEB-INF/classes" New topic
Author

servlet in both WEB-INF/lib and WEB-INF/classes

Joshua Antony
Ranch Hand

Joined: Jun 05, 2006
Posts: 254
if a servlet exist in both WEB-INF/classes and WEB-INF/lib/servlets.jar,which one is given preference i.e which servlet will handle the request
[ April 02, 2008: Message edited by: Joshua Antony ]

SCJP,SCWCD, Into ATG now!
Karthigeyan Kannabiran
Greenhorn

Joined: Sep 08, 2006
Posts: 5
The servlet from WEB-INF/classes.


Thanks & Regards<br />Karthik
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42585
    
  65
Needless to say, it is not a good idea to keep multiple versions of a class in your classpath.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet in both WEB-INF/lib and WEB-INF/classes