Is there a way to retrieve the Java source code for the servlet that was created from a JSP page?

John Zukowski

How to do this depends upon the specific web server you are using. For Tomcat, look in the work directory, under the TOMCAT_HOME (install dir). [This directory is configured in serverl.xml with the ContextManager - workDir="work".] There are subdirectories for each context, like localhost_8080 for the top-level and localhost_8080%2Fexamples for the examples context. Then you'll get long filenames to reflect the path to the JSP file, like The trailing 7 is for the version.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact