struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tutu <tugdual.huer...@gmail.com>
Subject Re: Pb displaying image
Date Tue, 21 Jul 2009 07:31:31 GMT

Thanks for response.
Just one question, how do you make the image visible on the webserver
without putting it in the web application? 


Jim Kiley wrote:
> 
> Make sure the image is visible to your webserver, and then use an
> http://url to access it, rather than a file:// url.
> jk
> 
> On Mon, Jul 20, 2009 at 11:08 AM, tutu <tugdual.huertas@gmail.com> wrote:
> 
>>
>> Hi,
>>
>> I have a pb while trying to display an image that is not in my
>> application
>> but on the file system!!
>>
>> I've tried to put this in my jsp:
>>
>> file:///<%=request.getAttribute( /1.png"></img>
>>
>> and that too:
>> <html:image
>> src="file:///<%=request.getAttribute("imageLocation")%>/1.png"/>
>> <html:img
>> src="file:///<%=request.getAttribute("imageLocation")%>/1.png"/>
>>
>> (imageLocation reference D:/images)
>>
>> but nothing is displayed. Does anybody knows how to display an image that
>> is
>> not in the web application?
>>
>> thanks,
>>
>> tugdual
>> --
>> View this message in context:
>> http://www.nabble.com/Pb-displaying-image-tp24571593p24571593.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 
> -- 
> Jim Kiley
> Senior Technical Consultant | Summa
> [p] 412.258.3346
> http://www.summa-tech.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Pb-displaying-image-tp24571593p24582908.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message