Search code examples
javaeclipsecontextpath

Set Context Path in Dynamic WebProject


I'm trying to set the context path for a web project, but I was not able to save it directly in eclipse.

Then I thought of directly making the change in the file to avoid this.

enter image description here

Here is my file structure:

enter image description here

Which file holds the context path in the webproject - look at my base structure before answering the question.


Solution

  • Go to .setting folder under project folder.

    .settings/org.eclipse.wst.common.component

    search for property "property name="context-root"" then set the desired value.

    enter image description here