Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compiling servlets using tomcat

 
Danish Shaukat
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!
How do i compile servlets using tomcat. Where do i put my source files etc.
Regards
Danish Shaukat
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After compiling your servlets, put them in the following directory "TomcatDir/webpages/WEB-INF/classes. This may even vary depending on what version of Tomcat you are using. Just navigate to the classes directory and put your class files there.
Bosun
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic