生成的JSP类文件位于哪里? [英] Where are the generated JSP class files located?
问题描述
我只想问是否有人知道JSP翻译文件(java文件)在哪里存储?它经常收到异常指示jsp java文件行,但是如果我看不到该文件,更难以更正错误。
双击Eclipse中的服务器选项卡中的Tomcat条目。您将在服务器位置部分中看到类似的内容:
如果您没有更改服务器路径,因此默认为Eclipse的工作空间元数据,则Tomcat的 / work
目录不在Tomcat自己的安装文件夹中,而是在上述屏幕截图所示的路径中。
与具体问题无关,如果您遵守 JSP编码建议,你在JSP中避免使用Java代码,那么调试将会更容易一些,还有很多其他优点。
I am using Tomcat 7.1 and Eclipse Indigo to develop a Java Web Application. I just want to ask if anybody knows where the JSP translated files (the java files) are stored? Its often i receive exceptions indicating the jsp java file line, but if i can not see the file it is more difficult to correct the bug.
Doubleclick the Tomcat entry in Servers tab in Eclipse. You'll see something like this in Server Locations section:
If you haven't changed the server path and it thus defaults to Eclipse's workspace metadata, then the Tomcat's /work
directory is not in Tomcat's own installation folder, but in the path as shown in the above screenshot.
Unrelated to the concrete problem, if you adhere the JSP coding recommendations and you avoid Java code in JSP altogether, then debugging will be so much easier, along with a lot of other advantages.
这篇关于生成的JSP类文件位于哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!