title: How to set ContextPath for an image link
body: <p>i am trying to put context path for an image in HTML.<code>&lt;img src="/MyWeb/images/pageSetup.gif"&gt;</code></p>
  
  <p>Here /MyWeb is the ContextPath which is hardcoded. How can i get dynamically.</p>
  
  <p>i am using as <code>&lt;img src=contextPath+"/images/pageSetup.gif"&gt;</code>but image is not displaying. Is there any option.</p>