Eclipse 的 JSP 编辑器,它存在吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8838487/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:50:06  来源:igfitidea点击:

JSP editor for eclipse, does it exist?

eclipsejsp

提问by James Raitsev

I noticed that my Eclipse does not include JSP Editor. Does standard JSP editor exist for Eclipse and if so, where can one download it from?

我注意到我的 Eclipse 不包括 JSP 编辑器。Eclipse 是否存在标准的 JSP 编辑器,如果存在,可以从哪里下载?

enter image description here

在此处输入图片说明

回答by skaffman

The JavaEE version of Eclipsehas full JSP support. The standard java development version doesn't.

EclipseJavaEE 版本具有完整的 JSP 支持。标准的 java 开发版本没有。

Alternatively, you should be able to install the WebTools plugin(s)into an existing Eclipse, that should give you JSP support also.

或者,您应该能够将WebTools 插件安装到现有的 Eclipse 中,这也应该为您提供 JSP 支持。

回答by Byorn

I had this same problem!

我有同样的问题!

I resolved it by switching my eclipse perspective to JAVA EE perspective.

我通过将我的 eclipse 视角切换到 JAVA EE 视角来解决它。

回答by Fangming

Go to help -> Install New Software and install webtool.

转到帮助 -> 安装新软件并安装 webtool。

And for whomever that still not seeing the editor, set JSP editor to be the default editor for JSP files in this way

对于仍然没有看到编辑器的人,以这种方式将 JSP 编辑器设置为 JSP 文件的默认编辑器

enter image description here

在此处输入图片说明

回答by Growling Flea

Having the same problem, I researched this and I found many solutions. After installing the Web Tool PLug-Ins, I was able to get the .jsp editor to work. Its important to know that you must close your .jsp files then reopen it, or you may be convinced that the solution didn't work. You can confirm that the Web Tool Install worked if you go to the following:

遇到同样的问题,我对此进行了研究,并找到了许多解决方案。安装 Web 工具插件后,我可以让 .jsp 编辑器工作。知道您必须关闭 .jsp 文件然后重新打开它很重要,否则您可能确信该解决方案不起作用。如果您转到以下内容,您可以确认 Web 工具安装工作正常:

Window -> Preferences In the list of options, you will see General. Expand that menu. Expand the "Editors" menu Click on the option "File Assocations" There will be a "file type" (I'm using Keleper) with a list of different file types. In this list, select .jsp. In this list you should see a list of editors. Select JSP editor. Then click OK.

Window -> Preferences 在选项列表中,您将看到 General。展开那个菜单。展开“编辑器”菜单 单击选项“文件关联” 将出现一个“文件类型”(我使用的是 Keleper),其中包含不同文件类型的列表。在此列表中,选择 .jsp。在此列表中,您应该会看到一个编辑器列表。选择 JSP 编辑器。然后单击确定。

This is something I discovered when trying to get mine to work.

这是我在尝试让我的工作时发现的事情。

回答by Rajeev Jayaswal

Go To Preference->General->Editors->File Associations Check editor for *.jsp type. If it's not present, add one. If it's Class file viewer, then remove it. Worked for me.

转到 Preference->General->Editors->File Associations 检查编辑器的 *.jsp 类型。如果它不存在,请添加一个。如果它是类文件查看器,则将其删除。对我来说有效。

回答by user3220701

To install from within IDE for newer Eclipse clients:

要从 IDE 中为较新的 Eclipse 客户端安装:

Help->Eclipse Marketplace

帮助->Eclipse Marketplace

Search for "Eclipse Java EE Developer Tools". Install.

搜索“Eclipse Java EE 开发人员工具”。安装。