Sasi Dhar
Sasi Dhar

Reputation: 31

JSP is not showing in eclipse wizard

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.

Upvotes: 2

Views: 5745

Answers (3)

Andrés Sanchez
Andrés Sanchez

Reputation: 119

  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.

Upvotes: 2

Som
Som

Reputation: 1610

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"

enter image description here

Attaching snapshot for creating new JSP file in Eclipse :

enter image description here

Upvotes: 3

Tarapada
Tarapada

Reputation: 11

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.

Upvotes: 2

Related Questions