tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Schroeder <>
Subject Re: import tag for dynamic content
Date Wed, 16 Sep 2009 14:36:16 GMT
On Wed, Sep 16, 2009 at 7:05 AM, paulbrickell
<> wrote:

> If I create a url with a context relative path (e.g. /x/y/z) and the I use
> this in the url attribute of an import tag, the import tag seems to attempt
> a lookup of a file in the web application.
> So given this...
> <c:url var="aURL" value="/x/y/z"/>
> ${aURL} Get resource at z
> <c:import url="${aURL}" var="xml" />
> The link in href attribute in the browser is a valid url, but the url
> attribute in the import tag is not. I get a file not found exception for
> /x/y/z. Import seems to want to lookup a static resource (html page for
> example) located on the file system and not open connection to some network
> resource. I am assuming from the name (import) that this is probably what is
> expected.

No, what you're describing works exactly correctly for me -- the
URL is accessed, and the rendered output, not a file, is fetched.

What value does ${aURL} display?
Hassan Schroeder ------------------------
twitter: @hassan

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message