Question

Is there a c tag equivalent of the <%@ include %> tag? Basically, when using the c:import tag, I find that the included pages cannot use c tags unless I import the jstl/core file on the included page.

Was it helpful?

Solution

Do you mean in XML syntax?

<jsp:directive.include file="relative_url" />

If you're looking for JSTL alternative, there isn't any. <c:import> is not the same thing - it evaluates content before inclusion.

OTHER TIPS

I guess jsp:include could be your thing. not part of the c: taglib, but works fine imo. it's nice for passing dynamic parameters and stuff like that.

http://java.sun.com/products/jsp/tags/11/syntaxref1112.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top