是否可以将jsp预编译到eclipse中?

发布于 2024-09-10 08:15:02 字数 76 浏览 1 评论 0原文

标题很简单。

我想知道是否有可能直接在eclipse中看到编译好的jsp(生成的servlet)。无需部署到任何服务器上。

The title is pretty straightforward.

I would like to know if there is any possibility of seeing the compiled jsp (the servlet generated) directly into eclipse. Without deploying onto any server.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心病无药医 2024-09-17 08:15:02

如果您使用 JSP,我建议购买 MyEclipse 因为它可以编译 JSP 并显示问题(编译错误)等)在编辑器中。 Eclipse 3.6 也可以工作,但 MyEclipse 中的 JSP 支持要好得多。

如果您只想编译 JSP,请查看 Maven。借助 JSPC 插件,您可以将 JSP 编译为 Java 代码,然后添加此源文件夹到您的项目。

为了完整起见:有一个古老的 Tomcat 插件 以及 UQBar 扩展。这将配置 Tomcat 在您使用 JSP 时将它们编译到项目中的工作文件夹中(即,这不是预编译,而是通常的即时 JSP 编译)。

If you work with JSPs, I suggest to buy MyEclipse since it can compile JSPs and show you problems (compile errors, etc) in the editor. Eclipse 3.6 also works but JSP support is much better in MyEclipse.

If you just want to compile the JSPs, then have a look at Maven. With the help of the JSPC Plugin, you can compile the JSPs into Java code and then add this source folder to your project.

For completeness: There is an ancient Tomcat plugin along with the UQBar Extension. That will configure Tomcat to compile the JSPs into a work folder in your project as you use them (i.e. this is not precompilation but the usual on-the-fly-JSP-compilation).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文