That would work with any context path, as long as the relative reference was correct.
Note that the reference is relative to the requested url, which may or may not be the actual JSP.
If you put a
servlet in front of things and then forward to this JSP, then the file may not be found, as the relative link is incorrect.
Bear's suggestion including the context path in the url, is guaranteed to work in any circumstance.
Wrapping it in a custom tag would be fairly straightforward.
cheers,
evnafets