You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by John C Cartwright <Jo...@noaa.gov> on 2003/10/09 20:26:46 UTC

retrieve image from dynamic source and

Hello All,

I'm trying to create a page using an HTML <img> tag that has as it's src 
attribute a URL.

my initial attempts were along the line of:

<img src="<c:url value="http://mapserver/servlet/com.esri.wms.Esrimap" 
var="url" >
       <c:param name="servicename" value="${param.servicename}"/>
    </c:url>">

however, the src attribute has the value of empty string in the 
resulting page.  Can someone point out what I'm doing wrong or suggest a 
better approach?

Thanks!




-- john

=====================================================
John Cartwright
Associate Scientist
Geospatial Data Services Group
CIRES, National Geophysical Data Center/NOAA
(303) 497-6284
John.C.Cartwright@noaa.gov
=====================================================



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


Re: retrieve image from dynamic source and

Posted by Serge Knystautas <se...@lokitech.com>.
John C Cartwright wrote:
> I'm trying to create a page using an HTML <img> tag that has as it's src 
> attribute a URL.
> 
> my initial attempts were along the line of:
> 
> <img src="<c:url value="http://mapserver/servlet/com.esri.wms.Esrimap" 
> var="url" >
>       <c:param name="servicename" value="${param.servicename}"/>
>    </c:url>">
> 
> however, the src attribute has the value of empty string in the 
> resulting page.  Can someone point out what I'm doing wrong or suggest a 
> better approach?

Take out the var="url", and the URL will be printed.  Right now the URL 
is being stored in that variable.  Alternateively, do the <c:url /> 
stuff first separate from the image tag, and then do <img src="<c:out 
value="${url}" />">

-- 
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. sergek@lokitech.com


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