Reputation: 31
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
Reputation: 119
Upvotes: 2
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"
Attaching snapshot for creating new JSP file in Eclipse :
Upvotes: 3
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