Version 2

    How can I see the Java source code that a JSP is compiled into


    The answer depends on whether you are using Tomcat or Jetty as your web container. 




    Tomcat stores the generated source files in the work/jboss.web/HOSTNAME/WEBAPPNAME directory under your ServerConfiguration directory.  


    For example, the JSP file somedir/somefile.jsp would generate the Java source file server/default/work/jboss.web/localhost/foo/org/apache/jsp/somedir/





    Jetty stores the generated file in the tmp directory  This will normally be the directory specified by the system property  On UNIX-like systems this will normally be /tmp.