To change the default url of the dynamic web project, say, the default url of a project is http://localhost:8080/DemoApp through which we can access the project using brower
but we need a url like http://localhost:8080/xyz,
then there is need to change the context root of the project from its "Properties | Web Project Settings | Context Root".
Now, change the context root from "DemoApp" to "xyz"
Remove the web app from server and add it again. It will ask to update the server configuration to match in a dialogue box. Make it yes.
Then, the web application can run with the url http://localhost:8080/xyz
0 Comment(s)