Dear Lazyweb, What is the JSF 1.2 XML-Syntax equivalent for

<img src="<c:url value='/static/foo.png' />" />

(this will make the URL relative to your application root, not to your web server; so if the app is installed in /foobar, the resulting URL will be /foobar/static/foo.png)

My preferred solution would have a useful src= value so an XHTML browser can still display the page. Same for CSS stylesheets, links and similar.

Please send me an email at erich@debian.org, I’ll update the entry. (Comments are intentially not enabled.)

Thanks.

[Update: at least in apache myfaces, this should work (untested):

<c:url value="/static/foo.png" var="url" />
<img src="${url}" />

However, the template file won’t render approximately in a regular browser. For easy-to-edit templates it would be nice to have an actual value in the src property. I have an idea how that could work with custom tags…]