From: "David Johnson" <[EMAIL PROTECTED]>
> the URL when this page is up is :
> http://localhost:8080/myApp/portfolio.action but the base href is:
> <base href="http://localhost:8080/myApp/jsp/layouts/siteLayout.jsp";>

FWIW, I never use <base>.  Or at least I would set it to something
reasonable like the index page of the site.

Given that URL, without the base tag, it seems to me the proper URL would
just be "jsp/images/portGraph.gif".

> <html-el:img src="../jsp/images/portGraph .gif"
> onclick="set('portfolioGraph');javascript:setPortName('${
> refPortfolio.refPortfolioDesc}');document.forms[0].submit();"/>

Is this copied and pasted?  You have a space in the image filename...

> how can I embed the above el stuff in a notmal img tag, and also within a
JS
> call?

You can use <c:out> to get the dynamic part into whatever HTML you want.
(I'd also move that mess of JavaScript into a function and pass it whatever
argument it needs.)  But... it shouldn't be relevant-- whether you use plain
old HTML or let Struts generate for you, it's still just HTML by the time it
gets to the browser, and the browser should be able to load the image.

Check that possible typo, and let us know how it goes!

-- 
Wendy Smoak



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

Reply via email to