I'm using Eclipse Java EE IDE and launch Tomcat from the Server's tab on Eclipse.
Where does Eclipse store generated servlet .java files for JSP files? I've checked the Tomcat installation directory, but nothing there.
Thanks.
The servlet source files are kept under " <CATALINA_HOME>\webapps\examples\WEB-INF\classes ", together with the compiled classes. To run the examples, start Tomcat server.
JSP on Tomcat Generated Java source code as well as compiled classes are stored in <tomcat_home>/work/Catalina/localhost/<application_name>.
The JSP translated files are stored (in Tomcat) in /work/Catalina/localhost/[your_app_context]/org/apache/jsp/ .
Doubleclick the server entry in Servers view and check the path represented by Server path. Explore in there from inside the workspace directory. The generated classes are there.
If you choose the 2nd option Use Tomcat installation, then it will be available Tomcat's /work
folder, there where you expected it to be.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With