Search code examples
jsptomcatmyeclipse

MyEclipse Spring Tomcat different dev contexts, using html absolute URLS


My local context is /123 and my work partners context is /456, when running simple HTML requests, like img src=/images, we want this to work across our shared projects. At the moment, that img tag would request localhost:8080/images rather than localhost:8080/[our-context]/images

We also need it to work with Javascript e.t.c, is there an easy way around this?

Cheers!


Solution

  • In Tomcat 6 & higher, global libraries are place inside TOMCAT_HOME/lib folder. refer this question Try like this. I am not sure about the result.

    Can you explain your question.. If you are making it more descriptive, you will get more answers.

    See this link