title: How to change the context path of a Spring MVC application deployed in TOMCAT 6.0
body: <p>I have a application by the name (say ) SR.DEV.1.001.war . The builds will change as might have thought already to SR.DEV.1.001 ..004 and so  on . However, the jsp's inside have links like DS/admin or DS/user .</p>
  
  <p>I have checked online for a few resources so as to help me , like <a href="http://www.coderanch.com/t/87915/Tomcat/tomcat-define-context-root-diff" rel="nofollow noreferrer">here</a> , <a href="https://stackoverflow.com/questions/16454841/how-to-change-context-path-of-tomcat">here</a> and <a href="https://stackoverflow.com/questions/7276989/howto-set-the-context-path-of-a-web-application-in-tomcat-7-0">here</a></p>
  
  <p>After trying them out, Im still having the same issue .
  I tried in context.xml in META-INF</p>
  
  <pre><code>  01)  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
                 &lt;Context  docBase="/SR.DEV.1.001.war"  path=""  reloadable="true" /&gt;
  
    02) &lt;?xml version="1.0" encoding="UTF-8"?&gt;
                 &lt;Context  docBase="/SR.DEV.1.001.war"  path="/"  reloadable="true" /&gt;
  
    03) &lt;?xml version="1.0" encoding="UTF-8"?&gt;
                 &lt;Context  docBase="/"  path="/DS"  reloadable="true" /&gt;
  
    04) &lt;?xml version="1.0" encoding="UTF-8"?&gt;
                 &lt;Context  docBase=""  path="/DS"  reloadable="true" /&gt;
  </code></pre>
  
  <p>Please help me fix the issue , as without which , its difficult for me to manage the versions of the war , without affecting the context . </p>
  
  <p>If it helps, I also have a redirect.jsp which is loaded as welcome file in web.xml.</p>
  
  <pre><code>         redirect.jsp : 
  
          &lt;%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%&gt;
          &lt;%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%&gt;
          &lt;%response.sendRedirect("/DS/pdui/show.do"); %&gt;
  </code></pre>
  
  <p>Thanks in advance .</p>