• Post Reply Bookmark Topic Watch Topic
  • New Topic

Correct Me if im wrong  RSS feed

 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 298
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!