File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes small doubt Please Clarify!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "small doubt Please Clarify!!!" Watch "small doubt Please Clarify!!!" New topic

small doubt Please Clarify!!!

Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
Dear All,
I am building a few Servlets in Apache+Tomcat environment. I have a few doubts:
Where do I put my compliled servlet's .class files. In specifically in which directory.
And also under the directory of Apache or in the directory of Tomcat?
Do I have to start apache before accessing the servlet, or just tomcat will be needed.
What should be my path in the action attribute of the servlet calling html file?
Please reply soon, It's urgent.
Thanks a lot,
Tualha Khan

SCJP2, BEA WLS 6.0, DB2 UDB 7.1
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13027
This is all laid out in the Tomcat documentation, the Tomcat examples, and the servlet and JSP API documentation.
Study how the Tomcat examples are set up in the server.xml and web.xml files. Read the APIs - available for download from

author of:
Ajan Balakrishnan
Ranch Hand

Joined: Jan 04, 2001
Posts: 71
see post
I agree. Here's the link:
subject: small doubt Please Clarify!!!
It's not a secret anymore!