Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting a Java Project to a Dynamic Web Project

Tags:

I'm using Eclipse Ganymede to create a web application, but the project's currently just a standard Java project. I want to convert it to a Dynamic Web Project and I need a hand in doing that.

I've had suggestions given to me about editing the .project file, but when I restart Eclipse it refuses to open the project claiming the file is corrupt. There's also no facet management options in the project properties.

Any suggestions?

like image 459
Mike Avatar asked May 08 '09 07:05

Mike


People also ask

What is dynamic Web project in Java?

Dynamic web projects have more advanced components, such as Java, PHP, ASP, etc. They have a lot of focus on server-side development. Dynamic web projects offer many advantages over static web projects as they can provide more information and functionalities.

What is convert to faceted form in Eclipse?

Project Facets Right click on the project properties. Select “Project Facets“, and click “convert to faceted form…” Check “Dynamic Web Module” and “Java“, and specify the value. By default, Eclipse will generate all “web” related files (like WEB-INF, web. xml) in a “WebContent” folder.


1 Answers

Although this question is already answered I'd like to say that I managed to convert my project into web project by changing project facets Properties->Project Facet and just checked Dynamic Web Module

like image 118
vrm Avatar answered Oct 05 '22 00:10

vrm