java - Running servlet at correct location in eclipse? -


i'm using tomcat 7.0 , eclipse kepler. when deploy servlets onto server running @ /<project name>/<servlet name> when want them run @ /<servlet name>. how can change this?

you need change context root name of web application:

  • right click on project.
  • click on properties.
  • choose "web project settings".
  • change context root property.
  • clean server , restart it.

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -