Meaningless Drivel is fun!
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

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 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
I agree. Here's the link:
subject: Correct Me if im wrong
It's not a secret anymore!