是否可以预编译jsp到eclipse? [英] Is it possible to precompile jsp into eclipse?

查看:126
本文介绍了是否可以预编译jsp到eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题很简单。

我想知道是否有可能直接将编译的jsp(生成的servlet)直接嵌入到eclipse中。

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.

推荐答案

如果您使用JSP,建议您购买 MyEclipse ,因为它可以编译JSP并显示编辑器中的问题(编译错误等)。 Eclipse 3.6也可以工作,但是在MyEclipse中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.

如果你只想编译JSP,那么看一下 Maven 。在 JSPC插件的帮助下,您可以将JSP编译为Java代码,然后添加此源文件夹到您的项目。

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.

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

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).

这篇关于是否可以预编译jsp到eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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