Where are the generated JSP class files located?

I am using Tomcat 7.1 and Eclipse Indigo to develop a Java web application. I just want to ask if anyone knows where the JSP files (java files) are stored? Often I get exceptions indicating the java line of the jsp file, but if I do not see the file, it is more difficult to fix the error.

+4
source share
3 answers

Double-click the Tomcat entry on the Servers tab in Eclipse. In the "Server Locations" section, you will see something like this:

enter image description here

If you have not changed the path to the server and, thus, the Eclipse workspace metadata is set by default, then the Tomcat /work directory is not in the Tomcat installation folder, but in the path, as shown in the screenshot above.


Unrelated to a specific problem, if you stick to JSP coding guidelines and avoid Java code in JSP in general , then debugging will be much easier, along with many other benefits.

+10
source

The JSP files listed are stored (in Tomcat) in /work/Catalina/localhost/[your_app_context]/org/apache/jsp/ .

Other containers or web servers should be checked.

+6
source

you can find java classes with java scripts in the workspace: And the path: workspace.metadata.plugins \ org.eclipse.wst.server.core \ tmp0 \ work \ Catalina \ localhost \ auctuus \ org \ apache \ jsp \ jsp \ gbp \ settings

0
source

Source: https://habr.com/ru/post/1388935/


All Articles