生成的 JSP 类文件位于何处? [英] Where are the generated JSP class files located?

查看:26
本文介绍了生成的 JSP 类文件位于何处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Tomcat 7.1 和 Eclipse Indigo 来开发 Java Web 应用程序.我只是想问有没有人知道JSP翻译的文件(java文件)存储在哪里?我经常收到指示 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.

推荐答案

双击 Eclipse 中 Servers 选项卡中的 Tomcat 条目.您将在 Server Locations 部分看到类似的内容:

Doubleclick the Tomcat entry in Servers tab in Eclipse. You'll see something like this in Server Locations section:

如果您没有更改服务器路径并因此默认为 Eclipse 的工作区元数据,则 Tomcat 的 /work 目录不在 Tomcat 自己的安装文件夹中,而是在如下所示的路径中以上截图.

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.

与具体问题无关,如果您遵守 JSP 编码建议 和你完全避免在 JSP 中使用 Java 代码,然后调试会容易得多,还有很多其他优点.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆