K.C. Baltz wrote:
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:
I'm pretty sure the problem is
You're right about why it's failing (prepending of app context). This kind of
thing should work:
c:set var=textURL value=/text.html/
c:import url=${textURL}/
You could then also use textURL with c:url:
a href=c:url value=${textURL}/...
Quoting K.C. Baltz [EMAIL PROTECTED]:
For various
I've left out a bit of detail in the hopes of making this simpler :).
I'm not actually using c:url, but rather a custom tag that extends the
Struts html:rewrite tag. My custom tag modifies the passed in URL, so
I can't skip that step. I could probably modify my custom tag to not
prepend the
Tried that. It just looks for my files in the ROOT context, rather than
the context specified in the URL. I also tried context=, but that
produced an exception.
K.C.
Hassan Schroeder wrote:
Hassan Schroeder jumped the gun with:
Uh, problem? the above works fine plugged into a page on my