2

I may sound a little childish but i am bit confused over a very basic thing


I am using tomcat server. I wrote two servlets to include in my web application and saved them in the classes folder under the tomcat directory...the point I am wondering about is I didn't compiled the two classes and simply placed the .java files in it....still my application was running successfully..... how come this is possible?? does it has some sort of inbuild compiler or is it something else....

1
  • can you specify tomcat version Commented Jun 21, 2011 at 9:50

1 Answer 1

2

Tomcat has a feature called Client Deployer that allows you to do this, but as mentioned, this will only run on that Tomcat instance

Sign up to request clarification or add additional context in comments.

1 Comment

From the ant file, it looks like it will remain in the WEB-INF/classes folder. The tomcat client deployer will have a build.xml that has a default target of "compile". This takes the source files from WEB-INF/classes and puts the compiled files in the same location

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.