JSP在Eclipse向导中未显示。

huangapple go评论67阅读模式
英文:

JSP is not showing in eclipse wizard

问题

我在Eclipse中创建新项目时,即使已添加了Web依赖项,仍然找不到JSP页面。

有人可以帮我了解如何在我的程序中使用JSP页面吗?

我不知道问题是依赖项还是新的Eclipse版本。

英文:

I am unable to find the JSP page in Eclipse while creating a new project even when I have added the web dependency.

Can anyone help me how can I use the JSP pages for my program?

I don't know whether the problem is with the dependencies or with the new Eclipse version.

答案1

得分: 3

以下是您要翻译的内容:

在Eclipse中创建新的动态Web项目时,您需要在所需的文件夹(如WebContentWEB-INF等)中创建一个JSP文件,您希望将JSP页面存放在其中,或者甚至可以创建一个名为**"jsp"**的文件夹,并将所有JSP文件放在该文件夹中。

您可以通过选择项目位置,然后点击

新建 -> 文件 -> 输入文件名(例如:login.jsp) -> 回车。

这将为您创建一个JSP文件。

附上“动态Web项目”的快照示例:

JSP在Eclipse向导中未显示。

附上在Eclipse中创建新JSP文件的快照示例:

JSP在Eclipse向导中未显示。

英文:

When you create a new Dynamic Web project in eclipse, You need to create a JSP file in your desired folder like WebContent, WEB-INF etc where you want to keep your JSP page, or even you can create a folder named "jsp" and put all JSP files inside that folder.

You can do this by selecting the project location and clicking on

New -> File -> Give the filename (ex : login.jsp) -> enter.

This will create a JSP file for you.

Attaching snapshot for "Dynamic Web Project"

JSP在Eclipse向导中未显示。

Attaching snapshot for creating new JSP file in Eclipse :

JSP在Eclipse向导中未显示。

答案2

得分: 2

你需要使用(下载)适用于Java EE开发人员的Eclipse IDE。然后在Eclipse中创建一个类型为Dynamic Web Project的新项目。然后在该项目的webcontent文件夹中添加一个类型为JSP的文件(新建 -> 文件)。

英文:

You need to use(download) Eclipse IDE for Java EE Developers. Then create create a new project of type Dynamic Web Project in eclipse. Then Add file (new->file) of type JSP on that project in webcontent folder.

答案3

得分: 2

  1. 帮助/安装新软件
  2. 如果不存在,添加仓库(http://download.eclipse.org/releases/mars)。
  3. 在(Web、XML、Java、EE 和 OSGI 企业开发)下
  4. 选择:Eclipse Java EE 开发工具
  5. 选择:Eclipse Java Web 开发工具
  6. 选择:Eclipse Web 开发工具
  7. 重启 Eclipse。
英文:
  1. Help/Install new Software
  2. Add repository (http://download.eclipse.org/releases/mars) if not available.
  3. Under (Web,XML,Java, EE and OSGI Enterprise Development)
  4. Select: Eclipse Java EE Developer Tools
  5. Select: Eclipse Java Web Developer Tools
  6. Select: Eclipse Web Developer Tools
  7. Restart Eclipse.

huangapple
  • 本文由 发表于 2020年8月23日 20:45:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/63547119.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定