Originally posted by Stefan Evans:
or probably better
No "probably" about it. Server-relative references are the best way to ensure that you get what you mean, and removes any artificial coupling between resources cause by page-relative addressing.
or in a jsp2.0 container using EL:
<img src="/${request.contextPath}/images/tarun.jpg"/>
Small correction -- should be:
No leading slash, and "request" is not a builtin scoped variable. You need to obtain the request from the pageContext.
[ June 01, 2006: Message edited by: Bear Bibeault ]