aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Correct Me if im wrong Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Correct Me if im wrong" Watch "Correct Me if im wrong" New topic
Author

Correct Me if im wrong

Sanjay pts
Ranch Hand

Joined: Nov 07, 2000
Posts: 357
If I'll keep servlet-api.jar or jsp-api.jar in

mywebApp/web-inf/lib directory then i'll not have to set classpath explicitly to compile servlet ???.

Ref Q3 on hfs&jsp page:583


Eat JAVA, Drink JAVA, Sleep Java
kapil munjal
Ranch Hand

Joined: May 11, 2004
Posts: 298
yes, you dont have to do this as the libraries required will be available to your application.

But, I have a little doubt...how would we compile the servlets if we put them in some location other than the deployment directory..

Actually this is ok for jsp pages...but for the compiling the servlets you need to have these libraries in classpath...


Kapil Munjal
SCJP 1.4, SCWCD 1.4
 
 
subject: Correct Me if im wrong