by jingo. it only works!!

just src rather than href

<html:img src="file:///test.jpg" />

I thought tomcat wouldn't have access to anything outside the webapp.


On 15 Jan 2004, at 15:03, Richard Hightower wrote:


seems like an odd request... but here goes...

<html:img href="file://c:/photo directory/foo.gif"/>

html:img supports three attributes for specifyin the location of an image
forward (referes to a global forward), page (relative to the current web
context), and href (any valid URL).


Rick Hightower
Developer

Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm

Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring

-----Original Message-----
From: Alain Van Vyve [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 7:35 AM
To: [EMAIL PROTECTED]
Subject: accessing an image outside my webapp



I have a JSP where I would like to show an image located outside my webapp
(e.g. in a c:\photo directory) ...


How to do that with the <html:img> Struts tag ??

Thanks

Alain


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to