1

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!

williamsandonz
  • 15,864
  • 23
  • 100
  • 186
  • 4
    Your question is unclear. I'm not sure about the complexity of this problem. Please elaborate more. To me it sounds like as if ``, or just by using the proper HTML base tag in combination with `` should do it for you. Does it really need to be `` which you fiddle afterwards with JS? See also for example http://stackoverflow.com/questions/3655316/browser-cant-access-css-and-images-when-calling-a-servlet-which-forwards-to-a-j/3658735#3658735 – BalusC Nov 29 '11 at 01:09

1 Answers1

0

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

Community
  • 1
  • 1
Sarin Jacob Sunny
  • 2,138
  • 3
  • 29
  • 61