Is there a way to retrieve the Java source code for the servlet that was created from a JSP page?
Created May 4, 2012
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 _0002fjsp_0002fforward_0002fforward_0002ejspforward_jsp_7.java. The trailing 7 is for the version.