For various reasons, I am generating a URL for a context relative resource using <c:url> and storing the result in a variable. Then I'm using that value in a <c:import> in an attempt to include the content of the resource in the page. Example:

<!-- Stores "/myContext/text.html" in the variable textURL -->
<c:url value="/text.html" var="textURL" />

<!-- attempts to insert the contents of text.html in the page, but nothing happens -->
<c:import url="${textURL}" />


I'm pretty sure the problem is that <c:url> generates a url with a leading slash followed by the context name, when <c:import> expects URLs that start with a slash to be relative to the current context. The spec seems to indicate <c:import> can handle URLs generated with <c:url>, but I don't see how.

Help?

K.C.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to