import tag for dynamic content

2009-09-15 Thread paulbrickell

Does anyone know how to use the import tag to access dynamic content from the
current context?

I naively thought this would do it...




or





Where /x/y/z is a (context)relative path that my application maps to a
servlet. However this doesn't seem to work because the import tag doesn't
expand the url and make a request. It does, to be honest, what it's name
suggests it should and just tries to import the content statically from the
given path.

Actually I am trying to import xml for parsing here, but it seems that the
xml parse tag only works upon a document in some scope and not against a
URL. So I appear to be a bit stuck. 

I found this...




and it works. But I cannot believe this is the right way to it.

TIA,
Paul B.
-- 
View this message in context: 
http://www.nabble.com/import-tag-for-dynamic-content-tp25450335p25450335.html
Sent from the Taglibs - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: taglibs-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail: taglibs-user-h...@jakarta.apache.org



Re: import tag for dynamic content

2009-09-15 Thread Hassan Schroeder
On Tue, Sep 15, 2009 at 1:48 AM, paulbrickell
 wrote:
>
> Does anyone know how to use the import tag to access dynamic content from the
> current context?

> I found this...
>
>  value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/x/y/z"/>
> 
>
> and it works. But I cannot believe this is the right way to it.

  

would be easier :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

-
To unsubscribe, e-mail: taglibs-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail: taglibs-user-h...@jakarta.apache.org