Home>>>>>

JSTL

JSTL is a presentation layer taglib used in JSP.

URL rewrite for absolute links

Instead of maintaining relative links (it is confusing if your jsp fragments are in another directory to the including jsp), you can turn the links into absolute URLs with c:url. That way you can deploy the webapp into a any context and the link will resolve correctly.

It can look a bit messy with nested tags.

    <img src="<c:url value="/images/calendar-icon.gif"/>"/>
    
More Articles (showing 1 below)  
 2006-04-09