Eclipse project names

Hi gurus,

Hopefully this is a quickie. A picture is worth a thousand words, so here goes:

When trying to add or remove projects:

How do I change the name of the project circled in red above?
Many thanks…

You can change the project name by right-click on project name then Refactor->Rename.

My wild guess is that you want to change the Context Root of your web project. You could do this in your Eclipse… though I forget step by step. Try googling “Eclipse Web Context Root” or non-eclipse way “Tomcat Web Root Context”. Anyways, there’s 0 reason why you should change the project name.

The reason I wanted to do this was I’m copy/pasting an existing project in my tomcat directory. I want to use the copy to muck around with, so when I get to the window in the 2nd image, I see “welcome” twice. :slight_smile:

I found the web context root. I changed it, but it’s still showing up as “welcome”. Is there anything I need to rerun or reset before attempting to re-add it?

Normally, that doesn’t work very well since it does not contain any Java Source. Unless this project is JSP only… don’t see how this would work. It’s hard to tell what’s going on in your end. Worst case is to create new web project and copy the sources in.

Well, I’d rather not use the “worst case” scenario if that’s the case. What is the proper way to copy an existing project within a workspace to mess around with?

Or is the proper procedure to setup a different workspace? Thx for the quick response! :slight_smile:

Certainly, I would not copy the project that is deployed within Tomcat. Proper way depends a lot on how the original programmer store the source. It could be in source control, local dev machine, or put it on web somewhere w/ a zip file. Once you get these source files then you could import your project into Eclipse.

I’m a little confused but I’ll see what I can come up with. I appreciate the feedback! :cool: