Search code examples
javajspsitemesh

With JSP, does the taglib URI mean that my site is reliant on the URI resolving?


I'm trying to implement a sitemesh decorator in my site. The example on their site has a full URI linking to their site for the taglib part of the decorator file:

<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>

Does this mean that my site is reliant on being able to access that site? Because i want to deploy inside an intranet which can't access the outside world.

Thanks


Solution

  • No, it does not. The URI declared in taglib will be resolved locally as long as it matches the URI declared in tag library descriptor (or in your web.xml, depending on what JSP version your container implements).

    See Java EE tutorial for more details.