With the Galileo release it is finally possible to convert a normal Java project to a dynamic web project. Unfortunately it assumes that the Web stuff is located in a folder WebContent, which is not necessarily the case for an existing project. How can I change it? In MyEclipse it is quite easy, but with a stock eclipse I don't find such an option!
Asked
Active
Viewed 4.5k times
3 Answers
56
I am not sure what you meant by "a stock eclipse", but Helios allows this functionality in a very straight-forward way:

Mugabo
- 753
- 7
- 13
-
This is the easiest way to accomplish this in Helios and later releases. No need to edit files. – Eric Nov 30 '11 at 23:39
-
25
I am not sure if there is UI for this or not, but you can edit file .settings/org.eclipse.wst.common.component, and change following line:
<wb-resource deploy-path="/" source-path="/WebContent"/>
Change /WebContent
to your preferred directory. I use this for a several years now and encountered no problems with it.

Peter Štibraný
- 32,463
- 16
- 90
- 116
15
Go in the project properties and do like this example where I use the Maven webapp folder:

John John Pichler
- 4,427
- 8
- 43
- 72